2023-01-09 12:35:05 +00:00
|
|
|
import { Sequelize } from 'sequelize';
|
2022-12-05 12:53:30 +00:00
|
|
|
|
|
|
|
const PackageModel = {
|
2023-01-09 12:35:05 +00:00
|
|
|
id: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
primaryKey: true,
|
|
|
|
autoIncrement: true,
|
|
|
|
},
|
|
|
|
packingConfigurationsFk: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
vbnPackageCode: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
customPackageId: {
|
|
|
|
type: Sequelize.UUID,
|
|
|
|
},
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default (sequelize) => {
|
2023-01-09 12:35:05 +00:00
|
|
|
const Package = sequelize.define('FDpackage', PackageModel, {
|
|
|
|
timestamps: false,
|
|
|
|
freezeTableName: true,
|
|
|
|
});
|
|
|
|
return Package;
|
|
|
|
};
|