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.

105 lines
2.6 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const ProjectUser = sequelize.define("projectUser", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true
},
projectName: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: '项目名称',
primaryKey: false,
field: "project_name",
autoIncrement: false
},
projectDescribe: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "项目描述",
primaryKey: false,
field: "project_describe",
autoIncrement: false
},
projectType: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: '项目类型',
primaryKey: false,
field: "project_type",
autoIncrement: false
},
monitorObject: {
type: DataTypes.ARRAY(DataTypes.INTEGER),
allowNull: false,
defaultValue: null,
comment: "监测对象",
primaryKey: false,
field: "monitor_object",
autoIncrement: false
},
account: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: '发布账号',
primaryKey: false,
field: "account",
autoIncrement: false
},
password: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "发布密码",
primaryKey: false,
field: "password",
autoIncrement: false
},
createTime: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: '创建时间',
primaryKey: false,
field: "create_time",
autoIncrement: false
},
code: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "p",
primaryKey: false,
field: "code",
autoIncrement: false
},
del: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: null,
comment: "",
primaryKey: false,
field: "del",
autoIncrement: false
}
}, {
tableName: "project_user",
comment: "",
indexes: []
});
dc.models.ProjectUser = ProjectUser;
return ProjectUser;
};