act_guochao_shop.js
1.22 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
/* eslint new-cap: "off" */
const options = require('../model-opts');
module.exports = function(sequelize, DataTypes) {
const actGuochaoShop = sequelize.define('actGuochaoShop', {
id: {
type: DataTypes.INTEGER(8),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
logo: {
type: DataTypes.STRING(200),
allowNull: true
},
url: {
type: DataTypes.STRING(300),
allowNull: true,
},
sort: {
type: DataTypes.INTEGER(8),
allowNull: true,
defaultValue: '0'
},
place: {
type: DataTypes.INTEGER(2),
allowNull: true,
defaultValue: '0'
},
collect_count: {
type: DataTypes.INTEGER(8),
allowNull: true,
defaultValue: '0'
},
shop_id: {
type: DataTypes.INTEGER(10),
allowNull: true,
defaultValue: '0'
},
shop_name: {
type: DataTypes.STRING(50),
allowNull: true,
}
}, Object.assign(options, {tableName: 'act_guochao_shop'}));
return actGuochaoShop;
};