floriday/models/seasonalPeriod.js

24 lines
496 B
JavaScript
Raw Normal View History

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