14 lines
300 B
JavaScript
14 lines
300 B
JavaScript
const mongoose = require('mongoose')
|
|
|
|
const AdminSchema = mongoose.Schema({
|
|
name: String,
|
|
username: String,
|
|
password: String,
|
|
created_at: String,
|
|
updated_at: String,
|
|
scope: {type: String, default: 'admin'},
|
|
token: String
|
|
})
|
|
|
|
module.exports = mongoose.model('Admin', AdminSchema)
|