28 lines
513 B
JavaScript
28 lines
513 B
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const photos = {
|
|
photoId: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
url: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
type: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
primary: {
|
|
type: Sequelize.BOOLEAN,
|
|
},
|
|
seasonalPeriodFk: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
};
|
|
|
|
export default (sequelize) => {
|
|
const Photos = sequelize.define('FDphotos', photos, {
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
});
|
|
return Photos;
|
|
};
|