planting_subzones

0 rows


Description

Regions within planting zones that are a convenient size for a planting operation. Typically <10Ha.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int8 19 null
monitoring_plots.planting_subzone_id monitoring_plots_planting_subzone_id_fkeyC
observation_requested_subzones.planting_subzone_id observation_requested_subzones_planting_subzone_id_fkeyC
planting_subzone_histories.planting_subzone_id planting_subzone_histories_planting_subzone_id_fkeyN
planting_subzone_populations.planting_subzone_id planting_subzone_populations_planting_subzone_id_fkeyC
plantings.planting_subzone_id plantings_planting_subzone_id_fkeyC
planting_zone_id int8 19 null
planting_zones.id plots_planting_zone_id_fkeyC

Which planting zone this subzone is part of.

name text 2147483647 null

Short name of this planting subzone. This is often just a single letter and number. Must be unique within a planting zone.

full_name text 2147483647 null
boundary geometry 2147483647 null

Boundary of the subzone. Coordinates always use SRID 4326 (WGS 84 latitude/longitude).

created_by int8 19 null
users.id plots_created_by_fkeyR

Which user created the subzone.

created_time timestamptz 35,6 null

When the subzone was originally created.

modified_by int8 19 null
users.id plots_modified_by_fkeyR

Which user most recently modified the subzone.

modified_time timestamptz 35,6 null

When the subzone was most recently modified.

planting_site_id int8 19 null
plantings.planting_site_id plantings_planting_site_id_plot_id_fkeyR
planting_sites.id plots_planting_site_id_fkeyC
planting_zones.planting_site_id plots_planting_site_id_planting_zone_id_fkeyR

Which planting site this subzone is part of. This is the same as the planting site ID of this subzone’s planting zone, but is duplicated here so it can be used as the target of a foreign key constraint.

area_ha numeric 131089 null
planting_completed_time timestamptz 35,6 null

Indexes

Constraint Name Type Sort Column(s)
plots_pkey Primary key Asc id
plots_planting_site_id_id_key Must be unique Asc/Asc planting_site_id + id
plots_planting_zone_id_name_key Must be unique Asc/Asc planting_zone_id + name

Check Constraints

Constraint Name Constraint
area_positive ((area_ha > (0)::numeric))

Relationships