21 lines
516 B
JavaScript
21 lines
516 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
module.exports = (app) => {
|
||
|
|
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
|
||
|
|
|
||
|
|
const Audit = app.model5.define('audit', {
|
||
|
|
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||
|
|
user_uid: CHAR(15),
|
||
|
|
identity_card: CHAR(18),
|
||
|
|
user_name: STRING(6),
|
||
|
|
status: INTEGER(3),
|
||
|
|
created_at: DATE,
|
||
|
|
},{
|
||
|
|
freezeTableName: true,
|
||
|
|
timestamp: true,
|
||
|
|
createdAt: true,
|
||
|
|
updatedAt: false,
|
||
|
|
});
|
||
|
|
|
||
|
|
return Audit;
|
||
|
|
};
|