Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
id | uuid | 2147483647 | gen_random_uuid() |
|
|
Unique identifier. |
|||||
tenant_id | uuid | 2147483647 | null |
|
|
Tenant identifier. |
|||||
day_id | int4 | 10 | null |
|
|
||||||
shift_day_id | uuid | 2147483647 | √ | null |
|
|
|||||
machine_id | uuid | 2147483647 | null |
|
|
||||||
zone_id | uuid | 2147483647 | √ | null |
|
|
|||||
type | text | 2147483647 | √ | null |
|
|
|||||
start_date | timestamptz | 35,6 | null |
|
|
||||||
duration | int4 | 10 | √ | null |
|
|
|||||
distance | float8 | 17,17 | √ | null |
|
|
|||||
created_at | timestamptz | 35,6 | now() |
|
|
DateTime the record was created. |
|||||
shift_day_name | text | 2147483647 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PK_sms_fixed_zone_algo_result | Primary key | Asc | id |
IX_sms_fixed_zone_algo_result_created_at | Performance | Asc | created_at |
IX_sms_fixed_zone_algo_result_day_id | Performance | Asc | day_id |
IX_sms_fixed_zone_algo_result_id | Must be unique | Asc | id |
IX_sms_fixed_zone_algo_result_shift_day_id | Performance | Asc | shift_day_id |
IX_sms_fixed_zone_algo_result_tenant_id | Performance | Asc | tenant_id |
IX_sms_fixed_zone_algo_result_type | Performance | Asc | type |
IX_sms_fixed_zone_algo_result_zone_id | Performance | Asc | zone_id |
UQ_sms_fixed_zone_algo_result_machineid_startdate | Must be unique | Asc/Asc | machine_id + start_date |