Files
authentication/app/model3/Business.js

28 lines
721 B
JavaScript
Raw Normal View History

'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Business = app.model3.define('business', {
id: { type: INTEGER(3), primaryKey: true, autoIncrement: true },
salt: CHAR(24),
login_url: STRING(200),
client_url: STRING(200),
temporary_id: CHAR(64),
client_id: CHAR(12),
client_secret: CHAR(64),
name: STRING(30),
type: INTEGER(3),
level: INTEGER(3),
status: INTEGER(3),
created_at: DATE,
updated_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return Business;
};