// app/model/i18n_key.js 'use strict'; module.exports = app => { const { STRING, INTEGER } = app.Sequelize; const I18nKey = app.model.define('wms_i18n_key', { id: { type: INTEGER.UNSIGNED, primaryKey: true, autoIncrement: true, }, key_name: { type: STRING(255), allowNull: false, comment: '国际化键名', }, project: { type: STRING(50), allowNull: false, defaultValue: 'wms', comment: '项目标识', }, module: { type: STRING(100), defaultValue: 'common', comment: '业务模块', }, description: { type: STRING(500), comment: '键值描述', }, status: { type: INTEGER, allowNull: false, defaultValue: 1, comment: '键值状态', }, }, { tableName: 'wms_i18n_keys', timestamps: true, createdAt: 'created_at', updatedAt: 'updated_at', underscored: true, paranoid: false, }); return I18nKey; };