floriday/models/package.js

24 lines
483 B
JavaScript

import { Sequelize } from 'sequelize';
const PackageModel = {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true,
},
vbnPackageCode: {
type: Sequelize.INTEGER,
},
customPackageId: {
type: Sequelize.STRING,
},
};
export default (sequelize) => {
const Package = sequelize.define('FDpackage', PackageModel, {
timestamps: false,
freezeTableName: true,
});
return Package;
};