19 lines
478 B
JavaScript
19 lines
478 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const Result = sequelize.define('results', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
user_id: type.INTEGER,
|
|
que_id: type.INTEGER,
|
|
domain_id: type.INTEGER,
|
|
ans: type.INTEGER,
|
|
time_taken: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
active: type.INTEGER
|
|
})
|
|
return Result;
|
|
} |