Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('mileage_id_seq'::regclass) |
|
|
Unique ID |
||||
| created_at | timestamp | 29,6 | now() |
|
|
Timestamp of creation |
|||||
| updated_at | timestamp | 29,6 | now() |
|
|
Timestamp of last update |
|||||
| id_creator | int4 | 10 | null |
|
|
Reference to the creator |
|||||
| id_updater | int4 | 10 | null |
|
|
Reference to the last updater |
|||||
| id_car | int4 | 10 | null |
|
|
Reference to the car |
|||||
| id_mileagetype | int2 | 5 | null |
|
|
Reference to the mileage type |
|||||
| recorded_at | timestamp | 29,6 | null |
|
|
Timestamp when the mileage was recorded |
|||||
| km | int4 | 10 | null |
|
|
The mileage km |
|||||
| note | text | 2147483647 | √ | null |
|
|
A note for this trip |
||||
| latitude | float8 | 17,17 | √ | null |
|
|
The latitude of this mileage |
||||
| longitude | float8 | 17,17 | √ | null |
|
|
The longitude of this mileage |
||||
| id_tenant | int4 | 10 | null |
|
|
Reference to the tenant |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_mileage_id | Primary key | Asc | id |
| u_mileage_id_car_id_mileagetype_recorded_at | Must be unique | Asc/Asc/Asc | id_car + id_mileagetype + recorded_at |