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. |
|||||
machine_id | uuid | 2147483647 | null |
|
|
||||||
valid_from | timestamptz | 35,6 | now() |
|
|
||||||
valid_to | timestamptz | 35,6 | √ | null |
|
|
|||||
deleted_at | timestamptz | 35,6 | √ | null |
|
|
|||||
cost_per_hour | int2 | 5 | null |
|
|
||||||
theoretical_consumption | float8 | 17,17 | null |
|
|
||||||
kg_co2_per_liter | float8 | 17,17 | null |
|
|
||||||
scraper_pusher | bool | 1 | false |
|
|
||||||
created_at | timestamptz | 35,6 | now() |
|
|
DateTime the record was created. |
|||||
created_by | uuid | 2147483647 | √ | null |
|
|
User who create the record. Null if System. |
||||
updated_at | timestamptz | 35,6 | √ | null |
|
|
DateTime the record was last updated. |
||||
updated_by | uuid | 2147483647 | √ | null |
|
|
User who last updated the record. |
||||
is_system | bool | 1 | false |
|
|
A system-generated record. Default = false |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PK_sms_dozer_parameters | Primary key | Asc | id |
IX_sms_dozer_parameters_created_at | Performance | Asc | created_at |
IX_sms_dozer_parameters_id | Must be unique | Asc | id |
IX_sms_dozer_parameters_is_system | Performance | Asc | is_system |
IX_sms_dozer_parameters_machine_id | Performance | Asc | machine_id |
IX_sms_dozer_parameters_tenant_id | Performance | Asc | tenant_id |
IX_sms_dozer_parameters_valid_from | Performance | Asc | valid_from |
IX_sms_dozer_parameters_valid_to | Performance | Asc | valid_to |