Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- bsonType: "object",
- required: ["_id", "linkId", "body", "score","isRemoved"],
- comment: {
- _id: {
- bsonType: "objectId",
- description: "must be an objectId and is required"
- },
- linkId: {
- bsonType: "objectId",
- description: "must be an objectId and is required"
- },
- body{
- bsonType: "string",
- description: "must be a string and is required"
- },
- score{
- bsonType: "int",
- description: "must be an int and is required"
- },
- isRemoved{
- bsonType: "boolean",
- description: "must be an boolean and is required"
- }
- },
- user: {
- _id: {
- bsonType: "objectId",
- description: "must be an objectId and is required"
- },
- firstName: {
- bsonType: "string",
- description: "must be an string and is required"
- },
- lastName: {
- bsonType: "string",
- description: "must be an string and is required"
- },
- password: {
- bsonType: "string",
- description: "must be an string and is required"
- },
- activationToken: {
- bsonType: "string",
- description: "must be an string and is not required"
- },
- resetPasswordToken: {
- bsonType: "string",
- description: "must be an string and is not required"
- },
- linkSearchHistory: [
- link:{
- bsonType: "object",
- description: "must be an object and is optional",
- required: ["linkId", "searchDate, "minScore","ammount"],
- properties: {
- linkId:{
- bsonType: "objectId",
- description: "must be an objectId and is required"
- },
- searchDate:{
- bsonType: "date",
- description: "must be an objectId and is required"
- },
- threadTitle:{
- bsonType: "string",
- description: "must be an objectId and is not required"
- },
- minScore:{
- bsonType: "int",
- description: "must be an objectId and is required"
- },
- ammount:{
- bsonType: "int",
- description: "must be an objectId and is required"
- }
- }
- }
- ]
- },
- sessions: {
- _id: {
- bsonType: "objectId",
- description: "must be an objectId and is required"
- },
- session_id: {
- bsonType: "string",
- description: "must be an string and is required"
- },
- session_attributes{
- bsonType: "string",
- description: "must be an string and is required"
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement