22 lines
432 B
JavaScript
22 lines
432 B
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const connections = {
|
|
supplierOrganizationId: {
|
|
type: Sequelize.STRING,
|
|
primaryKey: true,
|
|
allowNull: false,
|
|
},
|
|
};
|
|
|
|
export default (sequelize) => {
|
|
const connection = sequelize.define(
|
|
'supplier_connections',
|
|
connections,
|
|
{
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
}
|
|
);
|
|
return connection;
|
|
};
|