floriday/models/photos.js

28 lines
513 B
JavaScript
Raw Normal View History

import { Sequelize } from 'sequelize';
2022-12-05 12:53:30 +00:00
const photos = {
photoId: {
2023-01-11 12:13:22 +00:00
type: Sequelize.STRING,
},
url: {
type: Sequelize.STRING,
},
type: {
type: Sequelize.STRING,
},
primary: {
type: Sequelize.BOOLEAN,
},
seasonalPeriodFk: {
type: Sequelize.INTEGER,
},
2022-12-05 12:53:30 +00:00
};
export default (sequelize) => {
const Photos = sequelize.define('FDphotos', photos, {
timestamps: false,
freezeTableName: true,
});
return Photos;
};