北斗应用技术培训报名系统
This commit is contained in:
23
app/model/Application.js
Normal file
23
app/model/Application.js
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
|
||||
|
||||
const Application = app.model.define('application', {
|
||||
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||||
user_uid: CHAR(15),
|
||||
exam_uid: CHAR(10),
|
||||
source: STRING(24),
|
||||
status: INTEGER(3),
|
||||
pay_status: INTEGER(3),
|
||||
result: STRING(24),
|
||||
created_at: DATE,
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: false,
|
||||
});
|
||||
|
||||
return Application;
|
||||
};
|
||||
Reference in New Issue
Block a user