floriday/models/package.js

27 lines
552 B
JavaScript
Raw Normal View History

import { Sequelize } from 'sequelize';
2022-12-05 12:53:30 +00:00
const PackageModel = {
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) => {
const Package = sequelize.define('FDpackage', PackageModel, {
timestamps: false,
freezeTableName: true,
});
return Package;
};