1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 'use strict';
- module.exports = app => {
- const { mongoose } = app;
- const { Schema } = mongoose;
- const ConfigurationSchema = new Schema({
- // 本期封面
- path: {
- type: String,
- },
- // 名称
- name: {
- type: String,
- },
- // 描述
- describe: {
- type: String,
- },
- // 单位
- company: {
- type: String,
- },
- // 电话
- phone: {
- type: String,
- },
- // 地址
- address: {
- type: String,
- },
- // 邮箱
- mail: {
- type: String,
- },
- // 邮编
- postcode: {
- type: String,
- },
- // 备案号
- record: {
- type: String,
- },
- });
- return mongoose.model('Configuration', ConfigurationSchema);
- };
|