21 lines
408 B
JavaScript
21 lines
408 B
JavaScript
|
|
module.exports = (sequelize, type) => {
|
|
const Liveans = sequelize.define('livequestion_ans', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
lq_id: type.INTEGER,
|
|
ans: type.STRING,
|
|
user_id: type.INTEGER,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
lt_id: type.INTEGER,
|
|
result: type.STRING
|
|
})
|
|
return Liveans;
|
|
}
|