countries.js
1001 字节
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
module.exports = function (sequelize, DataTypes) {
return sequelize.define('countries', {
id: {
autoIncrement: true,
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
comment: "国家ID"
},
category_id: {
type: DataTypes.INTEGER,
allowNull: false,
comment: "分类ID"
},
logo: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "国家Logo"
},
name_en: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "英文名称"
},
name_zh: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "中文名称"
},
name_zht: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "粤语名称"
}
});
};
//# sourceMappingURL=countries.js.map