You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
458 B
JavaScript
22 lines
458 B
JavaScript
const mongoose = require('mongoose')
|
|
const schema = new mongoose.Schema({
|
|
active: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
free: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
created: {
|
|
type: Date,
|
|
default: () => new Date(),
|
|
},
|
|
email: String,
|
|
deviceId: String,
|
|
password: String,
|
|
link: String,
|
|
token: String,
|
|
lastLogin: Date,
|
|
})
|
|
module.exports = mongoose.model('Account', schema) |