floriday/models/tradeItem.js

50 lines
1003 B
JavaScript

import { Sequelize } from "sequelize";
const tradeItem = {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true,
},
tradeItemId: {
type: Sequelize.UUID
},
supplierOrganizationId: {
type: Sequelize.UUID
},
code: {
type: Sequelize.STRING
},
gtin: {
type: Sequelize.STRING
},
vbnProductCode: {
type: Sequelize.STRING
},
name: {
type: Sequelize.STRING
},
isDeleted: {
type: Sequelize.BOOLEAN,
},
sequenceNumber: {
type: Sequelize.INTEGER,
},
tradeItemVersion: {
type: Sequelize.INTEGER,
},
isCustomerSpecific: {
type: Sequelize.BOOLEAN,
},
isHiddenInCatalog: {
type: Sequelize.BOOLEAN,
}
};
export default (sequelize) => {
const TradeItem = sequelize.define("FDtradeItem", tradeItem, {
timestamps: false,
freezeTableName: true,
});
return TradeItem;
};