1234567891011121314151617181920212223 |
- '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);
- };
|