floriday/models/supplier/connections.js

26 lines
501 B
JavaScript
Raw Normal View History

2023-02-03 12:56:34 +00:00
import { Sequelize } from 'sequelize';
const connections = {
organizationId: {
type: Sequelize.STRING,
primaryKey: true,
allowNull: false,
},
connect: {
type: Sequelize.BOOLEAN,
defaultValue: false,
},
};
export default (sequelize) => {
const connection = sequelize.define(
'FDconnections',
connections,
{
timestamps: false,
freezeTableName: true,
}
);
return connection;
};