12345678910111213141516171819202122232425262728293031323334353637 |
- 'use strict';
- module.exports = app => {
- const { mongoose } = app;
- const { Schema } = mongoose;
- const LogSchema = new Schema({
- // 模块
- mondel: {
- type: String,
- },
- // 类型
- method: {
- type: String,
- },
- // 结果
- result: {
- type: String,
- },
- // 数据
- data: {
- type: Object,
- },
- // 创建时间
- createAt: {
- type: String,
- },
- userName: {
- type: String,
- },
- acct: {
- type: String,
- },
- date: {
- type: String,
- },
- });
- return mongoose.model('Log', LogSchema);
- };
|