政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
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.

97 lines
2.2 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const EmergencyEquipmentRegistration = sequelize.define("emergencyEquipmentRegistration", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true
},
name: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "名称",
primaryKey: false,
field: "name",
autoIncrement: false
},
type: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "类别",
primaryKey: false,
field: "type",
autoIncrement: false
},
unit: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "计量单位",
primaryKey: false,
field: "unit",
autoIncrement: false
},
count: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "数量",
primaryKey: false,
field: "count",
autoIncrement: false
},
function: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "主要性能",
primaryKey: false,
field: "function",
autoIncrement: false
},
purpose: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "用途",
primaryKey: false,
field: "purpose",
autoIncrement: false
},
status: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "技术状况",
primaryKey: false,
field: "status",
autoIncrement: false
},
inTime: {
type: DataTypes.DATEONLY,
allowNull: true,
defaultValue: null,
comment: "入库日期",
primaryKey: false,
field: "in_time",
autoIncrement: false
}
}, {
tableName: "emergency_equipment_registration",
comment: "",
indexes: []
});
dc.models.EmergencyEquipmentRegistration = EmergencyEquipmentRegistration;
return EmergencyEquipmentRegistration;
};