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.
45 lines
1.1 KiB
45 lines
1.1 KiB
/* 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,
|
|
},
|
|
year: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
field: "year",
|
|
},
|
|
month: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
field: "month",
|
|
},
|
|
path: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
field: "path",
|
|
},
|
|
type: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
field: "type",
|
|
},
|
|
name: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
field: "name",
|
|
}
|
|
}, {
|
|
tableName: "reserve_item_report",
|
|
});
|
|
dc.models.ReserveItemReport = ReserveItemReport;
|
|
return ReserveItemReport;
|
|
};
|