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.
 
 
 
 

170 lines
3.9 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const RiskReport = sequelize.define("riskReport", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "table_name_id_uindex"
},
siteId: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "site_id",
autoIncrement: false
},
name: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "name",
autoIncrement: false
},
riskLevel: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "风险等级",
primaryKey: false,
field: "risk_level",
autoIncrement: false
},
specialType: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "特种作业类型",
primaryKey: false,
field: "special_type",
autoIncrement: false
},
contentFiles: {
type: DataTypes.JSON,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "content_files",
autoIncrement: false
},
content: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "施工内容描述",
primaryKey: false,
field: "content",
autoIncrement: false
},
phone: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "联系方式",
primaryKey: false,
field: "phone",
autoIncrement: false
},
guardian: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "现场监护人",
primaryKey: false,
field: "guardian",
autoIncrement: false
},
controlMeasuresFiles: {
type: DataTypes.JSON,
allowNull: false,
defaultValue: null,
comment: "管控措施附件",
primaryKey: false,
field: "control_measures_files",
autoIncrement: false
},
saftyMeasuresFiles: {
type: DataTypes.JSON,
allowNull: false,
defaultValue: null,
comment: "安全措施附件",
primaryKey: false,
field: "safty_measures_files",
autoIncrement: false
},
operationTicketFiles: {
type: DataTypes.JSON,
allowNull: false,
defaultValue: null,
comment: "作业票附件",
primaryKey: false,
field: "operation_ticket_files",
autoIncrement: false
},
controlMeasures: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "管控措施描述",
primaryKey: false,
field: "control_measures",
autoIncrement: false
},
saftyMeasures: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "安全措施描述",
primaryKey: false,
field: "safty_measures",
autoIncrement: false
},
operationTicket: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "作业票描述",
primaryKey: false,
field: "operation_ticket",
autoIncrement: false
},
state: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "登记状态",
primaryKey: false,
field: "state",
autoIncrement: false
},
createTime: {
type: DataTypes.DATE,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "create_time",
autoIncrement: false
}
}, {
tableName: "risk_report",
comment: "",
indexes: []
});
dc.models.RiskReport = RiskReport;
return RiskReport;
};