'use strict'; module.exports = app => { const { mongoose } = app; const { Schema } = mongoose; const ColumnSchema = new Schema({ name: { type: String, }, code: { type: String, }, id: { type: String, }, menuList: { type: Array, }, createAt: { type: String, }, }); return mongoose.model('Column', ColumnSchema); };