24 lines
495 B
JavaScript
24 lines
495 B
JavaScript
|
import { Sequelize } from 'sequelize';
|
||
|
|
||
|
const suppliers = {
|
||
|
id: {
|
||
|
type: Sequelize.INTEGER,
|
||
|
primaryKey: true,
|
||
|
autoIncrement: true,
|
||
|
},
|
||
|
supplierId: {
|
||
|
type: Sequelize.STRING,
|
||
|
unique: true,
|
||
|
},
|
||
|
supplierGln: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default (sequelize) => {
|
||
|
const Suppliers = sequelize.define('FDsuppliers', suppliers, {
|
||
|
timestamps: false,
|
||
|
freezeTableName: true,
|
||
|
});
|
||
|
return Suppliers;
|
||
|
};
|