floriday/models/tradeItem/countryOfOriginIsoCodes.js

25 lines
538 B
JavaScript
Raw Normal View History

import { Sequelize } from 'sequelize';
2022-12-05 12:53:30 +00:00
const countryOfOriginIsoCodes = {
tradeItemId: {
type: Sequelize.STRING,
primaryKey: true,
},
isoCode: {
type: Sequelize.STRING,
primaryKey: true,
},
2022-12-05 12:53:30 +00:00
};
export default (sequelize) => {
const CountryOfOriginIsoCodes = sequelize.define(
2023-05-15 12:19:43 +00:00
'tradeItem_countryOfOriginIsoCodes',
countryOfOriginIsoCodes,
{
timestamps: false,
freezeTableName: true,
}
);
return CountryOfOriginIsoCodes;
2022-12-05 12:53:30 +00:00
};