2022-12-05 12:53:30 +00:00
|
|
|
import { Sequelize } from "sequelize";
|
|
|
|
|
|
|
|
const photos = {
|
|
|
|
tradeItemFk: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
photoId: {
|
|
|
|
type: Sequelize.UUID,
|
|
|
|
},
|
|
|
|
url: {
|
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
|
|
|
type: {
|
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
|
|
|
primary: {
|
|
|
|
type: Sequelize.BOOLEAN,
|
|
|
|
},
|
2022-12-19 12:21:35 +00:00
|
|
|
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;
|
|
|
|
}
|