2023-01-09 12:35:05 +00:00
|
|
|
import { Sequelize } from 'sequelize';
|
2022-12-05 12:53:30 +00:00
|
|
|
|
|
|
|
const seasonalPeriod = {
|
2023-05-17 10:39:43 +00:00
|
|
|
tradeItemId: {
|
|
|
|
type: Sequelize.STRING,
|
2023-01-09 12:35:05 +00:00
|
|
|
primaryKey: true,
|
|
|
|
},
|
|
|
|
startWeek: {
|
|
|
|
type: Sequelize.INTEGER,
|
2023-05-17 10:39:43 +00:00
|
|
|
primaryKey: true,
|
2023-01-09 12:35:05 +00:00
|
|
|
},
|
|
|
|
endWeek: {
|
|
|
|
type: Sequelize.INTEGER,
|
2023-05-17 10:39:43 +00:00
|
|
|
primaryKey: true,
|
2023-01-09 12:35:05 +00:00
|
|
|
},
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default (sequelize) => {
|
2023-05-30 09:46:46 +00:00
|
|
|
return sequelize.define(
|
|
|
|
'tradeItemSeasonalPeriod',
|
|
|
|
seasonalPeriod,
|
|
|
|
{
|
|
|
|
timestamps: false,
|
|
|
|
freezeTableName: true,
|
|
|
|
}
|
|
|
|
);
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|