floriday/models/tradeItem/countryOfOriginIsoCode.js

24 lines
474 B
JavaScript
Raw Normal View History

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