Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
|||
| location_business_line_id | VARCHAR | 36 | null |
|
|
|||
| operation_type | VARCHAR | 30 | null |
|
|
|||
| model_id | VARCHAR | 100 | √ | null |
|
|
||
| model_tier | VARCHAR | 20 | √ | null |
|
|
||
| input_tokens | INT | 10 | 0 |
|
|
|||
| output_tokens | INT | 10 | 0 |
|
|
|||
| total_tokens | INT | 10 | √ | null |
|
|
||
| latency_ms | BIGINT | 19 | √ | null |
|
|
||
| user_id | VARCHAR | 255 | √ | null |
|
|
||
| is_success | BIT | 1 | 1 |
|
|
|||
| error_message | TEXT | 65535 | √ | null |
|
|
||
| created_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
|||
| updated_at | TIMESTAMP | 19 | √ | null |
|
|
||
| created_by | VARCHAR | 255 | √ | null |
|
|
||
| updated_by | VARCHAR | 255 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_usage_created | Performance | Asc | created_at |
| idx_usage_location | Performance | Asc | location_business_line_id |
| idx_usage_model | Performance | Asc | model_id |
| idx_usage_operation | Performance | Asc | operation_type |