mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-03 15:02:13 +08:00
Add nullable VARCHAR(100) column to record the actual model sent to upstream providers when model mapping is applied. NULL means no mapping — the requested model was used as-is. Includes migration, concurrent index for aggregation queries, Ent schema regeneration, and migration README correction (forward-only runner, not goose).
5 lines
279 B
SQL
5 lines
279 B
SQL
-- Add upstream_model field to usage_logs.
|
|
-- Stores the actual upstream model name when it differs from the requested model
|
|
-- (i.e., when model mapping is applied). NULL means no mapping was applied.
|
|
ALTER TABLE usage_logs ADD COLUMN IF NOT EXISTS upstream_model VARCHAR(100);
|