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.
62 lines
1.4 KiB
62 lines
1.4 KiB
2 years ago
|
/* eslint-disable*/
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const SalesDistribution = sequelize.define("salesDistribution", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "sales_distribution_id_uindex"
|
||
|
},
|
||
|
pepUserId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "pep_user_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
provinces: {
|
||
|
type: DataTypes.ARRAY(DataTypes.STRING),
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "provinces",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
cities: {
|
||
|
type: DataTypes.ARRAY(DataTypes.STRING),
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "cities",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
del: {
|
||
|
type: DataTypes.BOOLEAN,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "del",
|
||
|
autoIncrement: false
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "sales_distribution",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
dc.models.SalesDistribution = SalesDistribution;
|
||
|
return SalesDistribution;
|
||
|
};
|