This commit is contained in:
Mrx
2026-02-04 17:09:17 +08:00
parent 1a44eab144
commit bfbdf983b0
38 changed files with 1719 additions and 1725 deletions

View File

@@ -29,7 +29,7 @@ $tables = @(
# "agent",
# "agent_commission",
# "agent_config"
"query_user_record"
# "query_user_record"
# "agent_freeze_task",
# "agent_invite_code",
# "agent_invite_code_usage",
@@ -56,14 +56,14 @@ $tables = @(
# "query_cleanup_config",
# "query_cleanup_detail",
# "query_cleanup_log",
# "user",
"user"
# "user_auth"
)
# 为每个表生成模型
foreach ($table in $tables) {
Write-Host "正在生成表: $table" -ForegroundColor Green
goctl model mysql datasource -url="zac:5vg67b3UNHu8@tcp(127.0.0.1:21201)/zac" -table="$table" -dir="./model" --home="$HOME_DIR" -cache=true --style=goZero
goctl model mysql datasource -url="zac:5vg67b3UNHu8@tcp(127.0.0.1:23221)/zac" -table="$table" -dir="./model" --home="$HOME_DIR" -cache=true --style=goZero
# 移动生成的文件到目标目录
if (Test-Path $OUTPUT_DIR) {