act_wheel_surf_prize.js
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* eslint new-cap: "off" */
const options = require('../model-opts');
module.exports = function(Sequelize, DataTypes) {
const ActWheelSurfPrize = Sequelize.define('ActWheelSurfPrize', {
id: {
type: DataTypes.INTEGER(8),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
act_id: {
type: DataTypes.INTEGER(8),
allowNull: false
},
name: {
type: DataTypes.STRING(50),
allowNull: true
},
type: {
type: DataTypes.INTEGER(2),
allowNull: true
},
value: {
type: DataTypes.STRING(200),
allowNull: true
},
img: {
type: DataTypes.STRING(300),
allowNull: true
},
total: {
type: DataTypes.INTEGER(8),
allowNull: false,
defaultValue: 0
},
total_left: {
type: DataTypes.INTEGER(8),
allowNull: false,
defaultValue: 0
},
chance: {
type: DataTypes.FLOAT,
allowNull: true
},
prize_idx: {
type: DataTypes.INTEGER(2),
allowNull: false,
defaultValue: 0
},
create_time: {
type: DataTypes.DATE,
defaultValue: Sequelize.NOW
}
}, Object.assign(options, {tableName: 'act_wheel_surf_prize'}));
return ActWheelSurfPrize;
};