12345678910111213141516171819202122232425262728293031323334353637383940 |
- 'use strict';
- module.exports = app => {
- const { mongoose } = app;
- const { Schema } = mongoose;
- const ConfigurationSchema = new Schema({
- // 名称
- 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);
- };
|