2023-02-03 12:56:34 +00:00
|
|
|
import { Sequelize } from 'sequelize';
|
|
|
|
|
|
|
|
const connections = {
|
2023-05-09 09:59:21 +00:00
|
|
|
supplierOrganizationId: {
|
2023-02-03 12:56:34 +00:00
|
|
|
type: Sequelize.STRING,
|
|
|
|
primaryKey: true,
|
|
|
|
allowNull: false,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default (sequelize) => {
|
|
|
|
const connection = sequelize.define(
|
2023-05-15 12:19:43 +00:00
|
|
|
'supplier_connections',
|
2023-02-03 12:56:34 +00:00
|
|
|
connections,
|
|
|
|
{
|
|
|
|
timestamps: false,
|
|
|
|
freezeTableName: true,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
return connection;
|
|
|
|
};
|