2023-01-09 12:35:05 +00:00
|
|
|
import { Sequelize } from 'sequelize';
|
2022-12-05 12:53:30 +00:00
|
|
|
|
|
|
|
const seasonalPeriod = {
|
2023-01-09 12:35:05 +00:00
|
|
|
id: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
primaryKey: true,
|
|
|
|
autoIncrement: true,
|
|
|
|
},
|
|
|
|
startWeek: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
endWeek: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default (sequelize) => {
|
2023-05-15 12:19:43 +00:00
|
|
|
const SeasonalPeriod = sequelize.define('tradeItem_seasonalPeriod', seasonalPeriod, {
|
2023-01-09 12:35:05 +00:00
|
|
|
timestamps: false,
|
|
|
|
freezeTableName: true,
|
|
|
|
});
|
|
|
|
return SeasonalPeriod;
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|