Files
bd-training-exam-manager/app/model/Importerror.js

22 lines
559 B
JavaScript
Raw Normal View History

'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Importerror = app.model.define('importerror', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
identity_card: CHAR(18),
user_name: STRING(6),
exam_uid: CHAR(10),
type: INTEGER(3),
status: INTEGER(3),
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return Importerror;
};