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.
61 lines
1.4 KiB
61 lines
1.4 KiB
/* eslint-disable*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const FloodControlHeadquarters = sequelize.define("floodControlHeadquarters", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "序号",
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true
|
|
},
|
|
name: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "名称",
|
|
primaryKey: false,
|
|
field: "name",
|
|
autoIncrement: false
|
|
},
|
|
location: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "设立地点",
|
|
primaryKey: false,
|
|
field: "location",
|
|
autoIncrement: false
|
|
},
|
|
dikeLength: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "管辖堤长",
|
|
primaryKey: false,
|
|
field: "dike_length",
|
|
autoIncrement: false
|
|
},
|
|
commander: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "指挥",
|
|
primaryKey: false,
|
|
field: "commander",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "flood_control_headquarters",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.FloodControlHeadquarters = FloodControlHeadquarters;
|
|
return FloodControlHeadquarters;
|
|
};
|