floriday/models/tradeItem/seasonalPeriod.js

25 lines
535 B
JavaScript

import { Sequelize } from 'sequelize';
const seasonalPeriod = {
tradeItemId: {
type: Sequelize.STRING,
primaryKey: true,
},
startWeek: {
type: Sequelize.INTEGER,
primaryKey: true,
},
endWeek: {
type: Sequelize.INTEGER,
primaryKey: true,
},
};
export default (sequelize) => {
const SeasonalPeriod = sequelize.define('tradeItem_seasonalPeriod', seasonalPeriod, {
timestamps: false,
freezeTableName: true,
});
return SeasonalPeriod;
};