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.
316 lines
9.4 KiB
316 lines
9.4 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const MunicipalBusiness = sequelize.define("municipalBusiness", {
|
|
id: {
|
|
index: 1,
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "municipal_business_id_uindex"
|
|
},
|
|
nameOfBusinessOwner: {
|
|
index: 2,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "业户名称",
|
|
primaryKey: false,
|
|
field: "name_of_business_owner",
|
|
autoIncrement: false
|
|
},
|
|
productName: {
|
|
index: 3,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "品名",
|
|
primaryKey: false,
|
|
field: "product_name",
|
|
autoIncrement: false
|
|
},
|
|
creditSocialCode: {
|
|
index: 4,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "信用社会代码",
|
|
primaryKey: false,
|
|
field: "credit_social_code",
|
|
autoIncrement: false
|
|
},
|
|
administrativeDivision: {
|
|
index: 5,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "行政区划",
|
|
primaryKey: false,
|
|
field: "administrative_division",
|
|
autoIncrement: false
|
|
},
|
|
economicNature: {
|
|
index: 6,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经济性质",
|
|
primaryKey: false,
|
|
field: "economic_nature",
|
|
autoIncrement: false
|
|
},
|
|
address: {
|
|
index: 7,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "地址",
|
|
primaryKey: false,
|
|
field: "address",
|
|
autoIncrement: false
|
|
},
|
|
contactNumber: {
|
|
index: 8,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "联系电话",
|
|
primaryKey: false,
|
|
field: "contact_number",
|
|
autoIncrement: false
|
|
},
|
|
email: {
|
|
index: 9,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "电子邮箱",
|
|
primaryKey: false,
|
|
field: "email",
|
|
autoIncrement: false
|
|
},
|
|
legalRepresentative: {
|
|
index: 10,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "法定代表人",
|
|
primaryKey: false,
|
|
field: "legal_representative",
|
|
autoIncrement: false
|
|
},
|
|
typeOfLegalPersonCertificate: {
|
|
index: 11,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "法人证件类型",
|
|
primaryKey: false,
|
|
field: "type_of_legal_person_certificate",
|
|
autoIncrement: false
|
|
},
|
|
natureOfTransportation: {
|
|
index: 12,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "运输性质",
|
|
primaryKey: false,
|
|
field: "nature_of_transportation",
|
|
autoIncrement: false
|
|
},
|
|
legalPersonCertificateNumber: {
|
|
index: 13,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "法人证件号码",
|
|
primaryKey: false,
|
|
field: "legal_person_certificate_number",
|
|
autoIncrement: false
|
|
},
|
|
telephoneNumberOfLegalRepresentative: {
|
|
index: 14,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "法定代表人电话",
|
|
primaryKey: false,
|
|
field: "telephone_number_of_legal_representative",
|
|
autoIncrement: false
|
|
},
|
|
nameOfThePersonInChargeOfTheBusiness: {
|
|
index: 15,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经营业户负责人姓名",
|
|
primaryKey: false,
|
|
field: "name_of_the_person_in_charge_of_the_business",
|
|
autoIncrement: false
|
|
},
|
|
telephoneNumberOfThePersonInChargeOfTheBusiness: {
|
|
index: 16,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经营业户负责人电话号码",
|
|
primaryKey: false,
|
|
field: "telephone_number_of_the_person_in_charge_of_the_business",
|
|
autoIncrement: false
|
|
},
|
|
handledBy: {
|
|
index: 17,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经办人",
|
|
primaryKey: false,
|
|
field: "handled_by",
|
|
autoIncrement: false
|
|
},
|
|
phoneNumberOfHandler: {
|
|
index: 18,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经办人电话",
|
|
primaryKey: false,
|
|
field: "phone_number_of_handler",
|
|
autoIncrement: false
|
|
},
|
|
natureOfBusiness: {
|
|
index: 19,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经营范围",
|
|
primaryKey: false,
|
|
field: "nature_of_business",
|
|
autoIncrement: false
|
|
},
|
|
businessStatus: {
|
|
index: 20,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经营状态",
|
|
primaryKey: false,
|
|
field: "business_status",
|
|
autoIncrement: false
|
|
},
|
|
businessLicenseNo: {
|
|
index: 21,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经营许可证号",
|
|
primaryKey: false,
|
|
field: "business_license_no",
|
|
autoIncrement: false
|
|
},
|
|
fromTheExpiryDate: {
|
|
index: 22,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "有效期起",
|
|
primaryKey: false,
|
|
field: "from_the_expiry_date",
|
|
autoIncrement: false
|
|
},
|
|
expiryDate: {
|
|
index: 23,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "有效期止",
|
|
primaryKey: false,
|
|
field: "expiry_date",
|
|
autoIncrement: false
|
|
},
|
|
issuingAuthority: {
|
|
index: 24,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "发证机构",
|
|
primaryKey: false,
|
|
field: "issuing_authority",
|
|
autoIncrement: false
|
|
},
|
|
dateOfIssuance: {
|
|
index: 25,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "核发日期",
|
|
primaryKey: false,
|
|
field: "date_of_issuance",
|
|
autoIncrement: false
|
|
},
|
|
licenseCategory: {
|
|
index: 26,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "证照类别",
|
|
primaryKey: false,
|
|
field: "license_category",
|
|
autoIncrement: false
|
|
},
|
|
licenseIssuanceType: {
|
|
index: 27,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "证照发放类型",
|
|
primaryKey: false,
|
|
field: "license_issuance_type",
|
|
autoIncrement: false
|
|
},
|
|
numberOfSharedVehicles: {
|
|
index: 28,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "共有车辆数",
|
|
primaryKey: false,
|
|
field: "number_of_shared_vehicles",
|
|
autoIncrement: false
|
|
},
|
|
creationDate: {
|
|
index: 29,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "创建日期",
|
|
primaryKey: false,
|
|
field: "creation_date",
|
|
autoIncrement: false
|
|
},
|
|
type: {
|
|
index: 30,
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "类型 出租车/危货",
|
|
primaryKey: false,
|
|
field: "type",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "municipal_business",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.MunicipalBusiness = MunicipalBusiness;
|
|
return MunicipalBusiness;
|
|
};
|