countries.ts
799 字节
module.exports = function(sequelize:any, DataTypes:any) {
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: "粤语名称"
}
});
};