You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/* eslint-disable*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = dc => {
|
|
|
|
const DataTypes = dc.ORM;
|
|
|
|
const sequelize = dc.orm;
|
|
|
|
const Mirror = sequelize.define("mirror", {
|
|
|
|
id: {
|
|
|
|
type: DataTypes.INTEGER,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: true,
|
|
|
|
field: "id",
|
|
|
|
autoIncrement: true,
|
|
|
|
unique: "mirror_id_uindex"
|
|
|
|
},
|
|
|
|
template: {
|
|
|
|
type: DataTypes.STRING,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: "模板标识",
|
|
|
|
primaryKey: false,
|
|
|
|
field: "template",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
createUser: {
|
|
|
|
type: DataTypes.INTEGER,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "create_user",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
createTime: {
|
|
|
|
type: DataTypes.DATE,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "create_time",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
updateTime: {
|
|
|
|
type: DataTypes.DATE,
|
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "update_time",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
type: DataTypes.STRING,
|
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "title",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
showHeader: {
|
|
|
|
type: DataTypes.BOOLEAN,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "show_header",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
listOpen: {
|
|
|
|
type: DataTypes.BOOLEAN,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "list_open",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
publish: {
|
|
|
|
type: DataTypes.BOOLEAN,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "publish",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
check: {
|
|
|
|
type: DataTypes.ARRAY(DataTypes.INTEGER),
|
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "check",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
mid: {
|
|
|
|
type: DataTypes.STRING,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "mid",
|
|
|
|
autoIncrement: false
|
|
|
|
},
|
|
|
|
publishTime: {
|
|
|
|
type: DataTypes.DATE,
|
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null,
|
|
|
|
comment: null,
|
|
|
|
primaryKey: false,
|
|
|
|
field: "publish_time",
|
|
|
|
autoIncrement: false
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
tableName: "mirror",
|
|
|
|
comment: "",
|
|
|
|
indexes: []
|
|
|
|
});
|
|
|
|
dc.models.Mirror = Mirror;
|
|
|
|
return Mirror;
|
|
|
|
};
|