floriday/models/seasonalPeriod.js

27 lines
554 B
JavaScript

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