1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- '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,
- },
- // 是否显示弹窗
- isshow: {
- type: Boolean,
- },
- // 弹窗文字
- isname: {
- type: String,
- },
- // 是否显示首页标题
- isShowTitle: {
- type: Boolean,
- default: false,
- },
- // 首页标题文字
- homeTitle: {
- type: String,
- },
- // 首页标题地址
- homeUrl: {
- type: String,
- },
- });
- return mongoose.model('Configuration', ConfigurationSchema);
- };
|