23 lines
429 B
JavaScript
23 lines
429 B
JavaScript
|
import { Sequelize } from "sequelize";
|
||
|
|
||
|
const countryOfOriginIsoCodes = {
|
||
|
tradeItemFk: {
|
||
|
type: Sequelize.INTEGER,
|
||
|
},
|
||
|
isoCode: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default (sequelize) => {
|
||
|
const CountryOfOriginIsoCodes = sequelize.define(
|
||
|
"FDcountryOfOriginIsoCodes",
|
||
|
countryOfOriginIsoCodes,
|
||
|
{
|
||
|
timestamps: false,
|
||
|
freezeTableName: true,
|
||
|
}
|
||
|
);
|
||
|
return CountryOfOriginIsoCodes;
|
||
|
};
|