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.
65 lines
1.6 KiB
65 lines
1.6 KiB
2 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const ReserveItemReport = sequelize.define("reserveItemReport", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
},
|
||
|
customer: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "customer",
|
||
|
},
|
||
|
items: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "items",
|
||
|
},
|
||
|
department: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
field: "department",
|
||
|
},
|
||
|
sale: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "sale",
|
||
|
},
|
||
|
updatetime: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false,
|
||
|
field: "updatetime",
|
||
|
},
|
||
|
customerContacts: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "customer_contacts",
|
||
|
},
|
||
|
phone: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "phone",
|
||
|
},
|
||
|
visitStyle: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "visit_style",
|
||
|
},
|
||
|
itemText: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
field: "item_text",
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "customer_contacts_followup",
|
||
|
});
|
||
|
dc.models.ReserveItemReport = ReserveItemReport;
|
||
|
return ReserveItemReport;
|
||
|
};
|