mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-10 21:20:20 +08:00
Align MySQL and SQLite schemas, migrations, usage, stats, export, and backfill behavior with the shared data contracts. Extend gateway startup and maintenance support across all SQL drivers.
2464 lines
48 KiB
TOML
2464 lines
48 KiB
TOML
[table.stats_hourly]
|
|
domain = "stats"
|
|
order = 10
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "hour_utc"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "error_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "actual_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "avg_response_time_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "is_complete"
|
|
type = "bool"
|
|
default = false
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "aggregated_at"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly.uniques]]
|
|
name = "uq_stats_hourly_hour"
|
|
columns = ["hour_utc"]
|
|
|
|
[table.stats_summary]
|
|
domain = "stats"
|
|
order = 15
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "cutoff_date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_error_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "all_time_actual_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "total_users"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "active_users"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "total_api_keys"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "active_api_keys"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_summary.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[table.stats_hourly_user]
|
|
domain = "stats"
|
|
order = 20
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "hour_utc"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "error_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_user.uniques]]
|
|
name = "uq_stats_hourly_user"
|
|
columns = ["hour_utc", "user_id"]
|
|
|
|
[table.stats_hourly_user_model]
|
|
domain = "stats"
|
|
order = 30
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "hour_utc"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_user_model.uniques]]
|
|
name = "uq_stats_hourly_user_model"
|
|
columns = ["hour_utc", "user_id", "model"]
|
|
|
|
[table.user_model_usage_counts]
|
|
domain = "stats"
|
|
order = 35
|
|
primary_key = ["id"]
|
|
|
|
[[table.user_model_usage_counts.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.user_model_usage_counts.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.user_model_usage_counts.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.user_model_usage_counts.columns]]
|
|
name = "usage_count"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.user_model_usage_counts.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.user_model_usage_counts.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.user_model_usage_counts.uniques]]
|
|
name = "uq_user_model_usage_count"
|
|
columns = ["user_id", "model"]
|
|
|
|
[[table.user_model_usage_counts.indexes]]
|
|
name = "idx_user_model_usage_user"
|
|
columns = ["user_id"]
|
|
|
|
[[table.user_model_usage_counts.indexes]]
|
|
name = "idx_user_model_usage_model"
|
|
columns = ["model"]
|
|
|
|
[table.stats_hourly_model]
|
|
domain = "stats"
|
|
order = 40
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "hour_utc"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "avg_response_time_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_model.uniques]]
|
|
name = "uq_stats_hourly_model"
|
|
columns = ["hour_utc", "model"]
|
|
|
|
[table.stats_hourly_provider]
|
|
domain = "stats"
|
|
order = 50
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "hour_utc"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_hourly_provider.uniques]]
|
|
name = "uq_stats_hourly_provider"
|
|
columns = ["hour_utc", "provider_name"]
|
|
|
|
[table.stats_daily]
|
|
domain = "stats"
|
|
order = 60
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "error_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "actual_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "input_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "output_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "avg_response_time_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "fallback_count"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "unique_models"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "unique_providers"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "is_complete"
|
|
type = "bool"
|
|
default = false
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "aggregated_at"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "p50_response_time_ms"
|
|
type = "int64"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "p90_response_time_ms"
|
|
type = "int64"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "p99_response_time_ms"
|
|
type = "int64"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "p50_first_byte_time_ms"
|
|
type = "int64"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "p90_first_byte_time_ms"
|
|
type = "int64"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "p99_first_byte_time_ms"
|
|
type = "int64"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.uniques]]
|
|
name = "uq_stats_daily_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_daily_model]
|
|
domain = "stats"
|
|
order = 70
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "avg_response_time_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_model.uniques]]
|
|
name = "uq_stats_daily_model"
|
|
columns = ["date", "model"]
|
|
|
|
[table.stats_daily_provider]
|
|
domain = "stats"
|
|
order = 80
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_provider.uniques]]
|
|
name = "uq_stats_daily_provider"
|
|
columns = ["date", "provider_name"]
|
|
|
|
[table.stats_daily_api_key]
|
|
domain = "stats"
|
|
order = 90
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "api_key_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "error_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "api_key_name"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_api_key.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_api_key.uniques]]
|
|
name = "uq_stats_daily_api_key"
|
|
columns = ["date", "api_key_id"]
|
|
|
|
[table.stats_daily_error]
|
|
domain = "stats"
|
|
order = 100
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "error_category"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "count"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_error.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_error.uniques]]
|
|
name = "uq_stats_daily_error"
|
|
columns = ["date", "error_category", "provider_name", "model"]
|
|
|
|
[table.stats_user_daily]
|
|
domain = "stats"
|
|
order = 110
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "error_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily.uniques]]
|
|
name = "uq_stats_user_daily"
|
|
columns = ["date", "user_id"]
|
|
|
|
# Advanced rollup columns are deployed incrementally by the portable drivers.
|
|
[[table.stats_user_daily.columns]]
|
|
name = "actual_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "effective_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "total_input_context"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "cache_creation_ephemeral_5m_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "cache_creation_ephemeral_1h_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_first_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily.columns]]
|
|
name = "settled_last_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "actual_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_first_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_hourly_user.columns]]
|
|
name = "settled_last_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "effective_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "total_input_context"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_creation_ephemeral_5m_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_creation_ephemeral_1h_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_hit_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "cache_hit_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_cache_hit_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_total_input_context"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "completed_cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_first_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_daily.columns]]
|
|
name = "settled_last_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "cache_hit_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "cache_hit_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_cache_hit_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_total_input_context"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "completed_cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_first_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_hourly.columns]]
|
|
name = "settled_last_finalized_at_unix_secs"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "cache_creation_ephemeral_5m_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model.columns]]
|
|
name = "cache_creation_ephemeral_1h_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_model.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_hourly_user_model.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[table.stats_user_summary]
|
|
domain = "stats"
|
|
order = 120
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "cutoff_date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_error_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "all_time_actual_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "active_days"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "first_active_date"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "last_active_date"
|
|
type = "unix_seconds"
|
|
nullable = true
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_summary.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_summary.uniques]]
|
|
name = "uq_stats_user_summary_user_id"
|
|
columns = ["user_id"]
|
|
|
|
[[table.stats_user_summary.indexes]]
|
|
name = "idx_stats_user_summary_cutoff_date"
|
|
columns = ["cutoff_date"]
|
|
|
|
[table.stats_user_daily_model]
|
|
domain = "stats"
|
|
order = 130
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "effective_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "total_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "total_input_context"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "cache_creation_ephemeral_5m_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "cache_creation_ephemeral_1h_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "actual_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "successful_response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "successful_response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_model.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_model.uniques]]
|
|
name = "uq_stats_user_daily_model"
|
|
columns = ["user_id", "date", "model"]
|
|
|
|
[[table.stats_user_daily_model.indexes]]
|
|
name = "idx_stats_user_daily_model_date"
|
|
columns = ["date"]
|
|
|
|
[[table.stats_user_daily_model.indexes]]
|
|
name = "idx_stats_user_daily_model_user_id"
|
|
columns = ["user_id"]
|
|
|
|
[table.stats_user_daily_provider]
|
|
domain = "stats"
|
|
order = 140
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "effective_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "total_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "total_input_context"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "cache_creation_ephemeral_5m_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "cache_creation_ephemeral_1h_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "actual_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "successful_response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "successful_response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_provider.uniques]]
|
|
name = "uq_stats_user_daily_provider"
|
|
columns = ["user_id", "date", "provider_name"]
|
|
|
|
[[table.stats_user_daily_provider.indexes]]
|
|
name = "idx_stats_user_daily_provider_date"
|
|
columns = ["date"]
|
|
|
|
[[table.stats_user_daily_provider.indexes]]
|
|
name = "idx_stats_user_daily_provider_user_id"
|
|
columns = ["user_id"]
|
|
|
|
[table.stats_user_daily_api_format]
|
|
domain = "stats"
|
|
order = 150
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "api_format"
|
|
type = "text"
|
|
length = 128
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "success_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "effective_input_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "output_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "total_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "total_input_context"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "cache_creation_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "cache_creation_ephemeral_5m_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "cache_creation_ephemeral_1h_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "actual_total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "successful_response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "successful_response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_api_format.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_api_format.uniques]]
|
|
name = "uq_stats_user_daily_api_format"
|
|
columns = ["user_id", "date", "api_format"]
|
|
|
|
[[table.stats_user_daily_api_format.indexes]]
|
|
name = "idx_stats_user_daily_api_format_date"
|
|
columns = ["date"]
|
|
|
|
[[table.stats_user_daily_api_format.indexes]]
|
|
name = "idx_stats_user_daily_api_format_user_id"
|
|
columns = ["user_id"]
|
|
|
|
[table.stats_daily_model_provider]
|
|
domain = "stats"
|
|
order = 160
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "total_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_model_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_model_provider.uniques]]
|
|
name = "uq_stats_daily_model_provider"
|
|
columns = ["date", "model", "provider_name"]
|
|
|
|
[[table.stats_daily_model_provider.indexes]]
|
|
name = "idx_stats_daily_model_provider_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_user_daily_model_provider]
|
|
domain = "stats"
|
|
order = 170
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "total_requests"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "total_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "total_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "response_time_sum_ms"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "response_time_samples"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_model_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_model_provider.uniques]]
|
|
name = "uq_stats_user_daily_model_provider"
|
|
columns = ["user_id", "date", "model", "provider_name"]
|
|
|
|
[[table.stats_user_daily_model_provider.indexes]]
|
|
name = "idx_stats_user_daily_model_provider_date"
|
|
columns = ["date"]
|
|
|
|
[[table.stats_user_daily_model_provider.indexes]]
|
|
name = "idx_stats_user_daily_model_provider_user_date"
|
|
columns = ["user_id", "date"]
|
|
|
|
[table.stats_daily_cost_savings]
|
|
domain = "stats"
|
|
order = 180
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings.uniques]]
|
|
name = "uq_stats_daily_cost_savings_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_daily_cost_savings_provider]
|
|
domain = "stats"
|
|
order = 190
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_provider.uniques]]
|
|
name = "uq_stats_daily_cost_savings_provider"
|
|
columns = ["date", "provider_name"]
|
|
|
|
[[table.stats_daily_cost_savings_provider.indexes]]
|
|
name = "idx_stats_daily_cost_savings_provider_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_daily_cost_savings_model]
|
|
domain = "stats"
|
|
order = 200
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_model.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_model.uniques]]
|
|
name = "uq_stats_daily_cost_savings_model"
|
|
columns = ["date", "model"]
|
|
|
|
[[table.stats_daily_cost_savings_model.indexes]]
|
|
name = "idx_stats_daily_cost_savings_model_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_daily_cost_savings_model_provider]
|
|
domain = "stats"
|
|
order = 210
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.uniques]]
|
|
name = "uq_stats_daily_cost_savings_model_provider"
|
|
columns = ["date", "model", "provider_name"]
|
|
|
|
[[table.stats_daily_cost_savings_model_provider.indexes]]
|
|
name = "idx_stats_daily_cost_savings_model_provider_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_user_daily_cost_savings]
|
|
domain = "stats"
|
|
order = 220
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings.uniques]]
|
|
name = "uq_stats_user_daily_cost_savings"
|
|
columns = ["user_id", "date"]
|
|
|
|
[[table.stats_user_daily_cost_savings.indexes]]
|
|
name = "idx_stats_user_daily_cost_savings_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_user_daily_cost_savings_provider]
|
|
domain = "stats"
|
|
order = 230
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.uniques]]
|
|
name = "uq_stats_user_daily_cost_savings_provider"
|
|
columns = ["user_id", "date", "provider_name"]
|
|
|
|
[[table.stats_user_daily_cost_savings_provider.indexes]]
|
|
name = "idx_stats_user_daily_cost_savings_provider_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_user_daily_cost_savings_model]
|
|
domain = "stats"
|
|
order = 240
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_model.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_model.uniques]]
|
|
name = "uq_stats_user_daily_cost_savings_model"
|
|
columns = ["user_id", "date", "model"]
|
|
|
|
[[table.stats_user_daily_cost_savings_model.indexes]]
|
|
name = "idx_stats_user_daily_cost_savings_model_date"
|
|
columns = ["date"]
|
|
|
|
[table.stats_user_daily_cost_savings_model_provider]
|
|
domain = "stats"
|
|
order = 250
|
|
primary_key = ["id"]
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "user_id"
|
|
type = "text_id"
|
|
length = 64
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "username"
|
|
type = "text"
|
|
length = 255
|
|
nullable = true
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "date"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "model"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "provider_name"
|
|
type = "text"
|
|
length = 255
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "cache_read_tokens"
|
|
type = "int64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "cache_read_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "cache_creation_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "estimated_full_cost"
|
|
type = "float64"
|
|
default = 0
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "created_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.columns]]
|
|
name = "updated_at"
|
|
type = "unix_seconds"
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.uniques]]
|
|
name = "uq_stats_user_daily_cost_savings_model_provider"
|
|
columns = ["user_id", "date", "model", "provider_name"]
|
|
|
|
[[table.stats_user_daily_cost_savings_model_provider.indexes]]
|
|
name = "idx_stats_user_daily_cost_savings_model_provider_date"
|
|
columns = ["date"]
|