Download supabase/tables/ai_usage_logs.sql from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/supabase/tables/ai_usage_logs.sql
- Command line
-
hf download hf://luom2645/agent-workspace/supabase/tables/ai_usage_logs.sql
-
curl -L -o ai_usage_logs.sql https://huggingface.co/luom2645/agent-workspace/resolve/main/supabase/tables/ai_usage_logs.sql
437 Bytes
| CREATE TABLE ai_usage_logs ( | |
| id UUID PRIMARY KEY DEFAULT gen_random_uuid(), | |
| user_id UUID NOT NULL, | |
| model_provider TEXT NOT NULL CHECK (model_provider IN ('openai', | |
| 'anthropic', | |
| 'google', | |
| 'local')), | |
| model_name TEXT NOT NULL, | |
| tokens_used INTEGER DEFAULT 0, | |
| cost_estimate DECIMAL(10,6), | |
| request_data JSONB, | |
| response_data JSONB, | |
| duration_ms INTEGER, | |
| created_at TIMESTAMPTZ DEFAULT NOW() | |
| ); |