68 lines
1.3 KiB
JavaScript
68 lines
1.3 KiB
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const supplyLine = {
|
|
id: {
|
|
type: Sequelize.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
},
|
|
supplyLineId: {
|
|
type: Sequelize.STRING,
|
|
unique: true,
|
|
},
|
|
status: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
supplierOrganizationId: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
pricePerPiece: {
|
|
type: Sequelize.JSON,
|
|
},
|
|
numberOfPieces : {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
deliveryPeriod: {
|
|
type: Sequelize.JSON,
|
|
},
|
|
orderPeriod: {
|
|
type: Sequelize.JSON,
|
|
},
|
|
wharehouseId: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
sequenceNumber: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
type: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
isDeleted: {
|
|
type: Sequelize.BOOLEAN,
|
|
},
|
|
salesUnit: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
agreementReferenceCode: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
agreementReferenceDescription: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
isLimited: {
|
|
type: Sequelize.BOOLEAN,
|
|
},
|
|
isCustomerSpecific: {
|
|
type: Sequelize.BOOLEAN,
|
|
}
|
|
};
|
|
|
|
|
|
|
|
export default (sequelize) => {
|
|
const SupplyLine = sequelize.define('FDsupplyLine', supplyLine, {
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
});
|
|
return SupplyLine;
|
|
}; |