北斗启航科技教育平台登录系统
This commit is contained in:
28
app/model3/Business.js
Normal file
28
app/model3/Business.js
Normal file
@@ -0,0 +1,28 @@
|
||||
'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;
|
||||
};
|
||||
Reference in New Issue
Block a user