mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 13:11:57 +08:00
15 lines
312 B
JavaScript
15 lines
312 B
JavaScript
'use strict';
|
|
|
|
const mongoose = require('../mongoose');
|
|
const Schema = mongoose.Schema;
|
|
|
|
const userSchema = new Schema({
|
|
name: String,
|
|
created_at: { type: Date, default: Date.now },
|
|
updated_at: { type: Date, default: Date.now }
|
|
});
|
|
|
|
const User = mongoose.model('User', userSchema);
|
|
|
|
module.exports = User;
|