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.
286 lines
7.2 KiB
286 lines
7.2 KiB
3 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const MunicipalBusiness = sequelize.define("municipalBusiness", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "municipal_business_id_uindex"
|
||
|
},
|
||
|
nameOfBusinessOwner: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "业户名称",
|
||
|
primaryKey: false,
|
||
|
field: "name_of_business_owner",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
productName: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "品名",
|
||
|
primaryKey: false,
|
||
|
field: "product_name",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
creditSocialCode: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "信用社会代码",
|
||
|
primaryKey: false,
|
||
|
field: "credit_social_code",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
administrativeDivision: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "行政区划",
|
||
|
primaryKey: false,
|
||
|
field: "administrative_division",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
economicNature: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经济性质",
|
||
|
primaryKey: false,
|
||
|
field: "economic_nature",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
address: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "地址",
|
||
|
primaryKey: false,
|
||
|
field: "address",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
contactNumber: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "联系电话",
|
||
|
primaryKey: false,
|
||
|
field: "contact_number",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
email: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "电子邮箱",
|
||
|
primaryKey: false,
|
||
|
field: "email",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
legalRepresentative: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "法定代表人",
|
||
|
primaryKey: false,
|
||
|
field: "legal_representative",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
typeOfLegalPersonCertificate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "法人证件类型",
|
||
|
primaryKey: false,
|
||
|
field: "type_of_legal_person_certificate",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
natureOfTransportation: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "运输性质",
|
||
|
primaryKey: false,
|
||
|
field: "nature_of_transportation",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
legalPersonCertificateNumber: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "法人证件号码",
|
||
|
primaryKey: false,
|
||
|
field: "legal_person_certificate_number",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
telephoneNumberOfLegalRepresentative: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "法定代表人电话",
|
||
|
primaryKey: false,
|
||
|
field: "telephone_number_of_legal_representative",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
nameOfThePersonInChargeOfTheBusiness: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经营业户负责人姓名",
|
||
|
primaryKey: false,
|
||
|
field: "name_of_the_person_in_charge_of_the_business",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
telephoneNumberOfThePersonInChargeOfTheBusiness: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经营业户负责人电话号码",
|
||
|
primaryKey: false,
|
||
|
field: "telephone_number_of_the_person_in_charge_of_the_business",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
handledBy: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经办人",
|
||
|
primaryKey: false,
|
||
|
field: "handled_by",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
phoneNumberOfHandler: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经办人电话",
|
||
|
primaryKey: false,
|
||
|
field: "phone_number_of_handler",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
natureOfBusiness: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经营范围",
|
||
|
primaryKey: false,
|
||
|
field: "nature_of_business",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
businessStatus: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经营状态",
|
||
|
primaryKey: false,
|
||
|
field: "business_status",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
businessLicenseNo: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经营许可证号",
|
||
|
primaryKey: false,
|
||
|
field: "business_license_no",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
fromTheExpiryDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "有效期起",
|
||
|
primaryKey: false,
|
||
|
field: "from_the_expiry_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
expiryDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "有效期止",
|
||
|
primaryKey: false,
|
||
|
field: "expiry_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
issuingAuthority: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "发证机构",
|
||
|
primaryKey: false,
|
||
|
field: "issuing_authority",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
dateOfIssuance: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "核发日期",
|
||
|
primaryKey: false,
|
||
|
field: "date_of_issuance",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
licenseCategory: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "证照类别",
|
||
|
primaryKey: false,
|
||
|
field: "license_category",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
licenseIssuanceType: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "证照发放类型",
|
||
|
primaryKey: false,
|
||
|
field: "license_issuance_type",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
numberOfSharedVehicles: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "共有车辆数",
|
||
|
primaryKey: false,
|
||
|
field: "number_of_shared_vehicles",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
creationDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "创建日期",
|
||
|
primaryKey: false,
|
||
|
field: "creation_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
type: {
|
||
|
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;
|
||
|
};
|