22 lines
557 B
JavaScript
22 lines
557 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const Points = sequelize.define('points', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
user_id: type.INTEGER,
|
|
domain_id: type.INTEGER,
|
|
know_points: type.INTEGER,
|
|
flash_points: type.INTEGER,
|
|
cat_points: type.INTEGER,
|
|
video_points: type.INTEGER,
|
|
total: type.INTEGER,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return Points;
|
|
}
|