/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const Coordinate = sequelize.define("coordinate", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, }, siteId: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: '工地id', primaryKey: false, field: "site_id", autoIncrement: false }, title: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: '申请协调标题', primaryKey: false, field: "title", }, emergencyDegree: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: '紧急程度', primaryKey: false, field: "emergency_degree", }, status: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: '协调状态', primaryKey: false, field: "status", }, time: { type: DataTypes.DATE, allowNull: false, defaultValue: null, comment: '申请时间', primaryKey: false, field: "time", }, describe: { type: DataTypes.TEXT, allowNull: false, defaultValue: null, comment: '申请描述', primaryKey: false, field: "describe", }, accessory: { type: DataTypes.JSON, allowNull: true, defaultValue: null, comment: '附件', primaryKey: false, field: "accessory", }, name: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: '申请人', primaryKey: false, field: "name", }, applySite: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: '申请工地', primaryKey: false, field: "apply_site", }, coordinateTime: { type: DataTypes.DATE, allowNull: true, defaultValue: null, comment: '协调时间', primaryKey: false, field: "coordinate_time", }, coordinator: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: '协调人', primaryKey: false, field: "coordinator", }, coordinateDescribe: { type: DataTypes.TEXT, allowNull: true, defaultValue: null, comment: '协调描述', primaryKey: false, field: "coordinate_describe", }, coordinateFile: { type: DataTypes.JSON, allowNull: true, defaultValue: null, comment: '协调附件', primaryKey: false, field: "coordinate_file", }, }, { tableName: "coordinate", comment: "", indexes: [] }); dc.models.Coordinate = Coordinate; return Coordinate; };