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.
65 lines
1.8 KiB
65 lines
1.8 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const Roadadministration = sequelize.define("roadadministration", {
|
|
id: {
|
|
index: 1,
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true
|
|
},
|
|
enforcementdate: {
|
|
index: 2,
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: '执法日期',
|
|
primaryKey: false,
|
|
field: "enforcementdate",
|
|
autoIncrement: false
|
|
},
|
|
roadname: {
|
|
index: 3,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: '道路名称',
|
|
primaryKey: false,
|
|
field: "roadname",
|
|
autoIncrement: false
|
|
},
|
|
enforcementreslt: {
|
|
index: 4,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: '执法结果',
|
|
primaryKey: false,
|
|
field: "enforcementreslt",
|
|
autoIncrement: false
|
|
},
|
|
picfile: {
|
|
index: 4,
|
|
type: DataTypes.JSON,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: '执法图片',
|
|
primaryKey: false,
|
|
field: "picfile",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "roadadministration",
|
|
comment: "路政管理",
|
|
indexes: []
|
|
});
|
|
dc.models.Roadadministration = Roadadministration;
|
|
return Roadadministration;
|
|
};
|