floriday/models/tradeItem/seasonalPeriod.js

28 lines
533 B
JavaScript
Raw Normal View History

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