Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int8 | 19 | √ | null |
|
|
|||||||||||||||||
| planting_site_id | int8 | 19 | null |
|
|
Which planting site this stratum is part of. |
|||||||||||||||||
| name | text | 2147483647 | null |
|
|
Short name of this stratum. This is often just a single letter. Must be unique within a planting site. |
|||||||||||||||||
| boundary | geometry | 2147483647 | null |
|
|
Boundary of the stratum. This area is further subdivided into plots. This will typically be a single polygon but may be multiple polygons if a stratum has several disjoint areas. Coordinates always use SRID 4326 (WGS 84 latitude/longitude). |
|||||||||||||||||
| created_by | int8 | 19 | null |
|
|
Which user created the stratum. |
|||||||||||||||||
| created_time | timestamptz | 35,6 | null |
|
|
When the stratum was originally created. |
|||||||||||||||||
| modified_by | int8 | 19 | null |
|
|
Which user most recently modified the stratum. |
|||||||||||||||||
| modified_time | timestamptz | 35,6 | null |
|
|
When the stratum was most recently modified. |
|||||||||||||||||
| variance | numeric | 0 | null |
|
|
||||||||||||||||||
| students_t | numeric | 0 | null |
|
|
||||||||||||||||||
| error_margin | numeric | 0 | null |
|
|
||||||||||||||||||
| num_permanent_plots | int4 | 10 | null |
|
|
Number of permanent plots to assign to the next observation. This is typically derived from a statistical formula. |
|||||||||||||||||
| num_temporary_plots | int4 | 10 | null |
|
|
||||||||||||||||||
| area_ha | numeric | 0 | null |
|
|
||||||||||||||||||
| target_planting_density | numeric | 0 | 1500 |
|
|
||||||||||||||||||
| boundary_modified_by | int8 | 19 | null |
|
|
Which user most recently edited the stratum’s boundary. |
|||||||||||||||||
| boundary_modified_time | timestamptz | 35,6 | null |
|
|
When the stratum’s boundary was most recently modified. |
|||||||||||||||||
| stable_id | text | 2147483647 | null |
|
|
Stratum identifier that doesn’t change even if the stratum is renamed or edited. Defaults to the stratum name. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| strata_pkey | Primary key | Asc | id |
| strata_planting_site_id_id_key | Must be unique | Asc/Asc | planting_site_id + id |
| strata_planting_site_id_name_key | Must be unique | Asc/Asc | planting_site_id + name |
| strata_planting_site_id_stable_id_key | Must be unique | Asc/Asc | planting_site_id + stable_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| area_positive | (area_ha > (0)::numeric) |
| must_have_permanent_clusters | (num_permanent_plots > 0) |
| positive_target_density | (target_planting_density > (0)::numeric) |
| no_negative_temporary_plots | (num_temporary_plots >= 0) |