63 lines
1.1 KiB
JavaScript
63 lines
1.1 KiB
JavaScript
|
import { Sequelize } from 'sequelize';
|
||
|
|
||
|
const clockPresalesSupply = {
|
||
|
supplyLineId: {
|
||
|
type: Sequelize.STRING,
|
||
|
primaryKey: true,
|
||
|
},
|
||
|
status: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
tradeItemId: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
pricePerPiece_currency: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
pricePerPiece_value: {
|
||
|
type: Sequelize.DECIMAL(10,2),
|
||
|
},
|
||
|
deliveryNoteReference: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
numberOfPieces: {
|
||
|
type: Sequelize.INTEGER,
|
||
|
},
|
||
|
packingConfigurations: {
|
||
|
type: Sequelize.JSON,
|
||
|
},
|
||
|
tradePeriod_startDateTime: {
|
||
|
type: Sequelize.DATE,
|
||
|
},
|
||
|
tradePeriod_endDateTime: {
|
||
|
type: Sequelize.DATE,
|
||
|
},
|
||
|
organizationId: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
tradeInstrument: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
salesChannel: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
sequenceNumber: {
|
||
|
type: Sequelize.INTEGER,
|
||
|
},
|
||
|
creationDateTime: {
|
||
|
type: Sequelize.DATE,
|
||
|
},
|
||
|
lastModifiedDateTime: {
|
||
|
type: Sequelize.DATE,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default (sequelize) => {
|
||
|
return sequelize.define(
|
||
|
'supplyLine_clockPresalesSupply',
|
||
|
clockPresalesSupply, {
|
||
|
timestamps: false,
|
||
|
freezeTableName: true,
|
||
|
}
|
||
|
);
|
||
|
};
|