Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| locality | varchar | 100 | ''::character varying |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| locality_en | varchar | 100 | ''::character varying |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| number | varchar | 20 | √ | ''::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| code | varchar | 10 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | int2 | 5 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parent_id | int8 | 19 | √ | null |
|
|
if is within another locality |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| coord_x | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| coord_y | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| coord_system | varchar | 50 | √ | ''::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| epsg | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| x | float8 | 17,17 | √ | null |
|
|
x (north) coordinate |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| y | float8 | 17,17 | √ | null |
|
|
y (east) coordinate |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| latitude | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| longitude | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| elevation | numeric | 8,2 | √ | NULL::numeric |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| coord_det_precision | int2 | 5 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| coord_det_method | int2 | 5 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| coord_det_agent | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extent | int2 | 5 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| country_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| maakond_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| vald_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| asustusyksus_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| area_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| remarks_location | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| depth | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| depth_basement | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| depth_bedrock | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_base | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_top | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_base_free | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_top_free | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_start | varchar | 50 | √ | ''::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_end | varchar | 50 | √ | ''::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_id_start | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_id_end | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_free_start | varchar | 50 | √ | ''::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stratigraphy_free_end | varchar | 50 | √ | ''::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| eelis | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| maaamet_pa_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| egt_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mindat_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_private | bool | 1 | false |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| remarks | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| user_added | varchar | 50 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| date_added | timestamptz | 35,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| user_changed | varchar | 50 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| date_changed | timestamptz | 35,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id | bigserial | 19 | √ | nextval('locality_id_seq'::regclass) |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| timestamp | timestamptz | 35,6 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| idx_750105_primary | Primary key | Asc | id |
| idx_750105_area_id | Performance | Asc | area_id |
| idx_750105_asustusyksus_id | Performance | Asc | asustusyksus_id |
| idx_750105_coord_det_agent | Performance | Asc | coord_det_agent |
| idx_750105_coord_det_method | Performance | Asc | coord_det_method |
| idx_750105_coord_det_precision | Performance | Asc | coord_det_precision |
| idx_750105_coord_system | Performance | Asc | coord_system |
| idx_750105_country_id | Performance | Asc | country_id |
| idx_750105_depth | Performance | Asc | depth |
| idx_750105_depth_basement | Performance | Asc | depth_basement |
| idx_750105_depth_bedrock | Performance | Asc | depth_bedrock |
| idx_750105_egt_id | Performance | Asc | egt_id |
| idx_750105_elevation | Performance | Asc | elevation |
| idx_750105_epsg | Performance | Asc | epsg |
| idx_750105_extent | Performance | Asc | extent |
| idx_750105_keskkonnaregister | Performance | Asc | eelis |
| idx_750105_latitude | Performance | Asc | latitude |
| idx_750105_locality | Must be unique | Asc | locality |
| idx_750105_locality_en | Must be unique | Asc | locality_en |
| idx_750105_longitude | Performance | Asc | longitude |
| idx_750105_maaamet_pa_id | Performance | Asc | maaamet_pa_id |
| idx_750105_maakond_id | Performance | Asc | maakond_id |
| idx_750105_mindat_id | Performance | Asc | mindat_id |
| idx_750105_number | Performance | Asc | number |
| idx_750105_parent_id | Performance | Asc | parent_id |
| idx_750105_stratigraphy_base | Performance | Asc/Asc | stratigraphy_base + stratigraphy_top |
| idx_750105_stratigraphy_base_free | Performance | Asc | stratigraphy_base_free |
| idx_750105_stratigraphy_id_start | Performance | Asc/Asc | stratigraphy_id_start + stratigraphy_id_end |
| idx_750105_stratigraphy_top | Performance | Asc | stratigraphy_top |
| idx_750105_stratigraphy_top_free | Performance | Asc | stratigraphy_top_free |
| idx_750105_type | Performance | Asc | type |
| idx_750105_vald_id | Performance | Asc | vald_id |
| idx_750105_x | Performance | Asc/Asc | x + y |
| idx_750105_x_2 | Performance | Asc | x |
| idx_750105_y | Performance | Asc | y |



