Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.06 KB

README.md

File metadata and controls

53 lines (41 loc) · 1.06 KB

Schema Design

Admins

fullname: String # required
email: String # required, composite key
password: String # required
organizationId: ObjectId # required, ref: Organizations, composite key

Applications

name: String # required
organizationId: ObjectId # required, ref: Organizations

Comments

refId: String # optional
applicationId: ObjectId # required, ref: Applications
ownerId: String # required
content: String # required
origin:  String # optional
replies: [ObjectId] # optional, ref: Replies
flags: [String] # optional, ref: ownerId
upVotes: [String] # optional, ref: ownerId
downVotes: [String] # optional, ref: ownerId

Replies

This model contains the following fields

ownerId: String # required
content: String # required
flags: [String] # optional, ref: ownerId
upVotes: [String] # optional, ref: ownerId
downVotes: [String] # optional, ref: ownerId
commentId: ObjectId # required, ref: Comments

Users

This model contains the following fields

name: String # required
email: String # required