floriday/models/seasonalPeriod.js

27 lines
501 B
JavaScript
Raw Normal View History

2022-12-05 12:53:30 +00:00
import { Sequelize } from "sequelize";
const seasonalPeriod = {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true,
},
tradeItemFk: {
type: Sequelize.INTEGER,
},
startWeek: {
type: Sequelize.INTEGER,
},
endWeek: {
type: Sequelize.INTEGER,
},
};
export default (sequelize) => {
const SeasonalPeriod = sequelize.define("FDseasonalPeriod", seasonalPeriod, {
timestamps: false,
freezeTableName: true,
});
return SeasonalPeriod;
};