Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | √ | null |
|
|
{“what”:“Unique numeric identifier for each routing rule.”,“why”:“Uniquely identifies a routing rule for updates and joins.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:18.125505762+00:00”} |
||||
| database_id | int4 | 10 | null |
|
|
{“what”:“Foreign key to the database that handles the user attribute.”,“why”:“Determines which database serves requests for a given user attribute.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:18.138536756+00:00”} |
|||||
| user_attribute | varchar | 254 | null |
|
|
{“what”:“User property value (e.g., tenant ID) that selects a database.”,“why”:“Without it, requests cannot be routed to the correct database.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:18.179411624+00:00”} |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| db_router_pkey | Primary key | Asc | id |
| db_router_database_id_key | Must be unique | Asc | database_id |