This commit is contained in:
张成
2026-03-26 09:40:55 +08:00
parent 7d0a921805
commit 60258c6c7d
11 changed files with 58 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ module.exports = (db) => {
},
{
tableName: "biz_api_tokens",
timestamps: true,
timestamps: false,
underscored: true,
comment: "API Token",
}

View File

@@ -34,10 +34,6 @@ module.exports = (db) => {
type: Sequelize.JSON,
allowNull: true,
},
created_at: {
type: Sequelize.DATE,
allowNull: false,
},
},
{
tableName: "biz_audit_log",

View File

@@ -48,7 +48,7 @@ module.exports = (db) => {
},
{
tableName: "biz_plans",
timestamps: true,
timestamps: false,
underscored: true,
comment: "套餐",
}

View File

@@ -40,7 +40,7 @@ module.exports = (db) => {
},
{
tableName: "biz_subscriptions",
timestamps: true,
timestamps: false,
underscored: true,
comment: "订阅",
}

View File

@@ -30,7 +30,7 @@ module.exports = (db) => {
},
{
tableName: "biz_usage_monthly",
timestamps: true,
timestamps: false,
underscored: true,
comment: "月用量",
}

View File

@@ -39,7 +39,7 @@ module.exports = (db) => {
// 与库表名一致:单数 biz_user与模型名一致避免部分环境下 tableName 未生效时落到默认表名 biz_user
tableName: "biz_user",
freezeTableName: true,
timestamps: true,
timestamps: false,
underscored: true,
comment: "业务用户",
}