mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
0cdf822603
* feat: token usage state * fix: typo
9 lines
361 B
SQL
9 lines
361 B
SQL
-- 0020_add_model_id_tracking
|
|
-- Add model_id column to bot_history_messages and bot_heartbeat_logs for per-model usage tracking
|
|
|
|
ALTER TABLE bot_history_messages
|
|
ADD COLUMN IF NOT EXISTS model_id UUID REFERENCES models(id) ON DELETE SET NULL;
|
|
|
|
ALTER TABLE bot_heartbeat_logs
|
|
ADD COLUMN IF NOT EXISTS model_id UUID REFERENCES models(id) ON DELETE SET NULL;
|