Usage Records
Service: subscription-api
Table: usage_records
Fields
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
id | uuid | no | - | - |
subscription_id | uuid | yes | - | - |
account_id | uuid | yes | - | - |
feature | string | yes | - | - |
quantity | integer | yes | - | - |
action | enum | no | - | enum: increment, set |
timestamp | timestamp | no | - | - |
idempotency_key | string | no | - | - |
metadata | jsonb | no | - | - |
created_at | timestamp | no | - | - |