政务数据资源中心(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.
 
 
 
 

151 lines
3.5 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const AffordableHousing = sequelize.define("affordableHousing", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "序号",
primaryKey: true,
field: "id",
autoIncrement: true
},
houseCommunity: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "小区名称",
primaryKey: false,
field: "house_community",
autoIncrement: false
},
houseBuildingNumber: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "栋号",
primaryKey: false,
field: "house_building_number",
autoIncrement: false
},
houseUnit: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "单元",
primaryKey: false,
field: "house_unit",
autoIncrement: false
},
houseNumber: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "房号",
primaryKey: false,
field: "house_number",
autoIncrement: false
},
houseArea: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "面积",
primaryKey: false,
field: "house_area",
autoIncrement: false
},
houseStatus: {
type: DataTypes.BOOLEAN,
allowNull: true,
defaultValue: null,
comment: "房源状态(是否空置)",
primaryKey: false,
field: "house_status",
autoIncrement: false
},
personName: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "租户姓名",
primaryKey: false,
field: "person_name",
autoIncrement: false
},
personStatus: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "租户身份",
primaryKey: false,
field: "person_status",
autoIncrement: false
},
personId: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "租户身份证号",
primaryKey: false,
field: "person_id",
autoIncrement: false
},
personAge: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "租户年龄",
primaryKey: false,
field: "person_age",
autoIncrement: false
},
personTownship: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "租户乡镇",
primaryKey: false,
field: "person_township",
autoIncrement: false
},
personCommunity: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "租户社区",
primaryKey: false,
field: "person_community",
autoIncrement: false
},
partOfCity: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "城市区域(东南西北)",
primaryKey: false,
field: "part_of_city",
autoIncrement: false
},
houseId: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "房屋唯一标识",
primaryKey: false,
field: "house_id",
autoIncrement: false
}
}, {
tableName: "affordable_housing",
comment: "",
indexes: []
});
dc.models.AffordableHousing = AffordableHousing;
return AffordableHousing;
};