Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||
| stratum_id | int8 | 19 | null |
|
|
Which stratum this substratum is part of. |
|||||||||||||||||||||||
| name | text | 2147483647 | null |
|
|
Short name of this substratum. This is often just a single letter and number. Must be unique within a stratum. |
|||||||||||||||||||||||
| full_name | text | 2147483647 | null |
|
|
||||||||||||||||||||||||
| boundary | geometry | 2147483647 | null |
|
|
Boundary of the substratum. Coordinates always use SRID 4326 (WGS 84 latitude/longitude). |
|||||||||||||||||||||||
| created_by | int8 | 19 | null |
|
|
Which user created the substratum. |
|||||||||||||||||||||||
| created_time | timestamptz | 35,6 | null |
|
|
When the substratum was originally created. |
|||||||||||||||||||||||
| modified_by | int8 | 19 | null |
|
|
Which user most recently modified the substratum. |
|||||||||||||||||||||||
| modified_time | timestamptz | 35,6 | null |
|
|
When the substratum was most recently modified. |
|||||||||||||||||||||||
| planting_site_id | int8 | 19 | null |
|
|
Which planting site this substratum is part of. This is the same as the planting site ID of this substratum’s stratum, but is duplicated here so it can be used as the target of a foreign key constraint. |
|||||||||||||||||||||||
| area_ha | numeric | 0 | null |
|
|
||||||||||||||||||||||||
| planting_completed_time | timestamptz | 35,6 | √ | null |
|
|
|||||||||||||||||||||||
| observed_time | timestamptz | 35,6 | √ | null |
|
|
When an observation of a monitoring plot in the substratum was most recently completed. |
||||||||||||||||||||||
| stable_id | text | 2147483647 | null |
|
|
Substratum identifier that doesn’t change even if the substratum is renamed or edited. Defaults to the full name. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| substrata_pkey | Primary key | Asc | id |
| substrata_planting_site_id_id_key | Must be unique | Asc/Asc | planting_site_id + id |
| substrata_planting_site_id_stable_id_key | Must be unique | Asc/Asc | planting_site_id + stable_id |
| substrata_stratum_id_name_key | Must be unique | Asc/Asc | stratum_id + name |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| area_positive | (area_ha > (0)::numeric) |