floriday/models/tradeItem/photos.js

26 lines
468 B
JavaScript

import { Sequelize } from 'sequelize';
const photos = {
id: {
type: Sequelize.STRING,
primaryKey: true,
},
url: {
type: Sequelize.STRING,
},
type: {
type: Sequelize.STRING,
},
primary: {
type: Sequelize.BOOLEAN,
},
};
export default (sequelize) => {
const Photos = sequelize.define('photos', photos, {
timestamps: false,
freezeTableName: true,
});
return Photos;
};