四好公路
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.
 
 
 
 

60 lines
1.3 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const VillageDistance = sequelize.define("villageDistance", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "village_distance_id_uindex"
},
originVillage: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "原点村庄",
primaryKey: false,
field: "origin_village",
autoIncrement: false,
references: {
key: "id",
model: "village"
}
},
calcVillage: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "相对计算村庄",
primaryKey: false,
field: "calc_village",
autoIncrement: false,
references: {
key: "id",
model: "village"
}
},
diatance: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "距离 m",
primaryKey: false,
field: "diatance",
autoIncrement: false
}
}, {
tableName: "village_distance",
comment: "",
indexes: []
});
dc.models.VillageDistance = VillageDistance;
return VillageDistance;
};