Untitled

mail@pastecode.io avatar
unknown
javascript
8 months ago
586 B
4
Indexable
Never
const TaskSchema = new Schema({
    user_id: {
        type: SchemaTypes.ObjectId,
        ref: "User",
        required: true
    },
    theuser: {
        type: Object
    },
    title: {
        type: String,
        required: true
    },
    // Number of milliseconds to remind user
    remind_every: {
        type: Number,
        required: true
    },
    notification_type: {
        type: String,
        enum: ['interval', 'friend'],
        default: "friend"
    },
    prompt_id: {
        type: SchemaTypes.ObjectId,
        ref: "Prompt"
    }
}, {
    timestamps: true
})
Leave a Comment