CREDENTIAL

{
    email: String & required,
    password: String & required,
    role: String
}

USER

{
    credential: Credential ObjectID,
    history: History ObjectID,
    lastConnected: Date
}

HISTORY

{
    bookmarks: [ Feed ObjectID ],
    viewedArticles: [ Article ObjectID ],
    starredArticles: [ Article ObjectID ]
}

FEED

{
    title: String & required,
    link: String & required,
    description: String & required,
    language: String,
    copyright: String,
    managingEditor: String,
    webMaster: String,
    pubDate: String,
    lastBuildDate: String,
    category: [ {
        name: String,
        domain: String
    } ],
    generator: String,
    docs: String,
    cloud: {
        domain: String,
        port: Number,
        path: String,
        registerProcedure: String,
        protocol: String
    },
    ttl: Number,
    image: {
        url: String & required,
        title: String & required,
        link: String & required,
        width: Number,// max 144, default 88
        height: Number,//max 400, default 31
        description: String
    },
    textInput: {
        title: String,
        description: String,
        name: String,
        link: String
    },
    skipHours: [ Number ],
    skipDays: [ String ],
    articles: [ Article ObjectID ] & required
}

ARTICLE

{
    feed: Feed ObjectID & required,
    title: String & required,
    link: String & required,
    description: String & required,
    author: String,
    category: [ {
        name: String,
        domain: String
    } ],
    comments: String,
    enclosure: {
        url: String,
        length: Number,
        type: String
    },
    guid: {
        id: String,
        isPermaLink: Boolean
    }
    pubDate: String,
    source: {
        name: String,
        url: String
    }
}

URSS Models

By mb1475963

URSS Models

  • 323