Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| number | varchar | 25 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| number_additional | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| number_field | varchar | 50 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| igsn | varchar | 11 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| series_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| parent_sample_id | int8 | 19 | √ | null |
|
|
fill if this is a sub-sample |
||||||||||||||||||||||||||||||||||
| parent_specimen_id | int8 | 19 | √ | null |
|
|
specimen from which the sample derives |
||||||||||||||||||||||||||||||||||
| sample_purpose | int2 | 5 | √ | null |
|
|
purpose of the initial sampling (e.g. micropaleontology, isotope geochemistry etc) |
||||||||||||||||||||||||||||||||||
| locality_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| site_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| project_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| locality_free | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| soil_site_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| latitude1 | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| longitude1 | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| x1 | int8 | 19 | √ | null |
|
|
LEST97 |
||||||||||||||||||||||||||||||||||
| y1 | int8 | 19 | √ | null |
|
|
LEST97 |
||||||||||||||||||||||||||||||||||
| epsg | int8 | 19 | √ | null |
|
|
coordinate reference system by EPSG numeric code |
||||||||||||||||||||||||||||||||||
| coordinate_accuracy | int8 | 19 | √ | null |
|
|
accuracy of coordinate determination in meters |
||||||||||||||||||||||||||||||||||
| depth | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| depth_interval | float8 | 17,17 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| stratigraphy_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| lithostratigraphy_id | int8 | 19 | √ | null |
|
|
Lithostratigraphic unit from the stratigraphy table |
||||||||||||||||||||||||||||||||||
| stratigraphy_free | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| stratigraphy_bed | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| stratigraphy_bed_thickness | numeric | 10,1 | √ | NULL::numeric |
|
|
bed thickness in cm (especially for bentonites etc) |
||||||||||||||||||||||||||||||||||
| soil_horizon | varchar | 20 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| agent_collected_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| agent_collected_free | varchar | 255 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| date_collected | date | 13 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| date_collected_free | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| sample_type | varchar | 100 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| classification_rock_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| rock_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| rock | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| rock_en | varchar | 255 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| fossils | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| palaeontology | bool | 1 | √ | false |
|
|
|||||||||||||||||||||||||||||||||||
| analysis | bool | 1 | √ | false |
|
|
|||||||||||||||||||||||||||||||||||
| mass | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| location | varchar | 20 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| location_additional | varchar | 20 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| storage_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| storage_additional_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| remarks | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| remarks_en | text | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| custom_field1 | varchar | 25 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| custom_field1_value | varchar | 255 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| custom_field2 | varchar | 25 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| custom_field2_value | varchar | 255 | √ | NULL::character varying |
|
|
|||||||||||||||||||||||||||||||||||
| 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 |
|
|
|||||||||||||||||||||||||||||||||||
| user_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| group_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| timestamp_created | timestamptz | 35,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| timestamp_updated | timestamptz | 35,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| database_id | int2 | 5 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| owner_id | int8 | 19 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| is_private | bool | 1 | false |
|
|
||||||||||||||||||||||||||||||||||||
| public | bool | 1 | false |
|
|
||||||||||||||||||||||||||||||||||||
| id | bigserial | 19 | √ | nextval('sample_id_seq'::regclass) |
|
|
|||||||||||||||||||||||||||||||||||
| timestamp | timestamptz | 35,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| id_temp | varchar | 25 | √ | NULL::character varying |
|
|
for bulk inserts with user-unique IDs, to match samples and analysis without knowing unique sample ID |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| idx_751043_primary | Primary key | Asc | id |
| idx_751043_agent_collected_id | Performance | Asc | agent_collected_id |
| idx_751043_classification_rock_id | Performance | Asc | classification_rock_id |
| idx_751043_custom_field1 | Performance | Asc | custom_field1 |
| idx_751043_custom_field1_value | Performance | Asc | custom_field1_value |
| idx_751043_custom_field2_value | Performance | Asc | custom_field2_value |
| idx_751043_database_id | Performance | Asc | database_id |
| idx_751043_depth | Performance | Asc | depth |
| idx_751043_igsn | Must be unique | Asc | igsn |
| idx_751043_is_private | Performance | Asc | is_private |
| idx_751043_lithostratigraphy_id | Performance | Asc | lithostratigraphy_id |
| idx_751043_locality_free | Performance | Asc | locality_free |
| idx_751043_locality_id | Performance | Asc | locality_id |
| idx_751043_number | Performance | Asc | number |
| idx_751043_number_additional | Performance | Asc | number_additional |
| idx_751043_number_field | Performance | Asc | number_field |
| idx_751043_owner_id | Performance | Asc | owner_id |
| idx_751043_parent_sample_id | Performance | Asc | parent_sample_id |
| idx_751043_parent_specimen_id | Performance | Asc | parent_specimen_id |
| idx_751043_rock_id | Performance | Asc | rock_id |
| idx_751043_sample_ibfk_14 | Performance | Asc | soil_site_id |
| idx_751043_sample_ibfk_17 | Performance | Asc | user_id |
| idx_751043_sample_ibfk_18 | Performance | Asc | group_id |
| idx_751043_sample_ibfk_22 | Performance | Asc | project_id |
| idx_751043_sample_purpose | Performance | Asc | sample_purpose |
| idx_751043_series_id | Performance | Asc | series_id |
| idx_751043_site_id | Performance | Asc | site_id |
| idx_751043_storage_additional_id | Performance | Asc | storage_additional_id |
| idx_751043_storage_id | Performance | Asc | storage_id |
| idx_751043_stratigraphy_bed | Performance | Asc | stratigraphy_bed |
| idx_751043_stratigraphy_id | Performance | Asc | stratigraphy_id |

