Column.js 393 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. module.exports = app => {
  3. const { mongoose } = app;
  4. const { Schema } = mongoose;
  5. const ColumnSchema = new Schema({
  6. name: {
  7. type: String,
  8. },
  9. code: {
  10. type: String,
  11. },
  12. id: {
  13. type: String,
  14. },
  15. menuList: {
  16. type: Array,
  17. },
  18. createAt: {
  19. type: String,
  20. },
  21. });
  22. return mongoose.model('Column', ColumnSchema);
  23. };