You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
766 B
47 lines
766 B
11 months ago
|
'use strict';
|
||
|
|
||
|
module.exports = app => {
|
||
|
const mongoose = app.mongoose;
|
||
|
const Schema = mongoose.Schema;
|
||
|
|
||
|
const UserSchema = new Schema({
|
||
|
create_at: {
|
||
|
type: Date,
|
||
|
default: Date.now
|
||
|
},
|
||
|
update_at: {
|
||
|
type: Date,
|
||
|
default: Date.now
|
||
|
},
|
||
|
name: {
|
||
|
type: String,
|
||
|
default: "",
|
||
|
},
|
||
|
phone: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
imgname: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
imgbase64: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
downCount: {
|
||
|
type: Number,
|
||
|
default: 0
|
||
|
},
|
||
|
down_time: {
|
||
|
type: Array,
|
||
|
default: []
|
||
|
},
|
||
|
isExit: {
|
||
|
type: Number,
|
||
|
default: 1
|
||
|
},
|
||
|
}, { strict: false });
|
||
|
return mongoose.model('User', UserSchema);
|
||
|
};
|