Files
bd-training-exam/app/model/Grades.js

21 lines
511 B
JavaScript

'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING } = app.Sequelize;
const Grades = app.model.define('grades', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
exam_uid: CHAR(10),
status: INTEGER(3),
grades: STRING(5),
pass_type: INTEGER(3),
},{
freezeTableName: true,
timestamp: false,
createdAt: false,
updatedAt: false,
});
return Grades;
};