Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INTEGER | 2000000000 | √ | √ | null |
|
|
||||||||||
| entity_type_id | INTEGER | 2000000000 | null |
|
|
||||||||||||
| entity_id | INTEGER | 2000000000 | null |
|
|
||||||||||||
| revision_id | INTEGER | 2000000000 | null |
|
|
||||||||||||
| source_type_id | INTEGER | 2000000000 | null |
|
|
||||||||||||
| device_id | INTEGER | 2000000000 | null |
|
|
||||||||||||
| created_at | INTEGER | 2000000000 | strftime('%s', 'now') * 1000 |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| entity_source_s_pk | Primary key | Asc | id |
| idx_entity_source_device | Performance | Asc | device_id |
| idx_entity_source_entity | Performance | Asc/Asc | entity_type_id + entity_id |
| idx_entity_source_entity_revision | Performance | Asc/Asc/Asc | entity_type_id + entity_id + revision_id |
| idx_entity_source_type | Performance | Asc | source_type_id |
| sqlite_autoindex_entity_source_1 | Must be unique | Asc/Asc/Asc | entity_type_id + entity_id + revision_id |

