北斗启航科技教育平台登录系统
This commit is contained in:
22
app/model2/CSubscribe.js
Normal file
22
app/model2/CSubscribe.js
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, DATE } = app.Sequelize;
|
||||
|
||||
const CSubscribe = app.model2.define('csubscribe', {
|
||||
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
|
||||
user_uid: CHAR(15),
|
||||
business: INTEGER(3),
|
||||
status: INTEGER(3),
|
||||
type: INTEGER(3),
|
||||
created_at: DATE,
|
||||
updated_at: DATE,
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: true,
|
||||
});
|
||||
|
||||
return CSubscribe;
|
||||
};
|
||||
Reference in New Issue
Block a user