Data model and schema documentation

boreholes.swissgeol.ch
data specification

The data model behind Switzerland’s national borehole repository — 56 tables, 464 attributes, 75 referenced code lists.

Version
2.1.1748 (boreholes.swissgeol.ch application). Not every application release changes the database schema.
Published
18 August 2026
Status
Published
Publisher
Federal Office of Topography swisstopo
Authors
Christian Ansorge, Data Architect Landesgeologie
Michael Gysi, Application Owner boreholes.swissgeol.ch
Contact
swissgeol@swisstopo.ch
DOI
10.60695/swisstopo.boreholes.datamodel.2026
Licence
Creative Commons Attribution 4.0 International (CC BY 4.0)
Cite as
Ansorge, C. and Gysi, M. (2026): boreholes.swissgeol.ch data specification — data model and schema documentation. Version 2.1.1748. Federal Office of Topography swisstopo. https://doi.org/10.60695/swisstopo.boreholes.datamodel.2026
swissgeol boreholes

Federal Office of Topography swisstopo
Wabern, Switzerland

Scope and introduction

The boreholes.swissgeol.ch database is swisstopo's central national repository for storing, managing, and publishing borehole information. It integrates geological, hydrogeological, petrophysical, and borehole engineering data, together with associated borehole logs, documents, photographs, and other supporting information.

The purpose of this document is to provide a structured overview of the database schema. It describes the individual database tables, their attributes, foreign key relationships, and relevant code lists, thereby serving as a reference for understanding the data model and its underlying structure.

The tables EFMigrationsHistory and config haven't been included in this document as they serve solely application specific purposes and carry no borehole relevant content.

Scope of this specification

This specification describes the database schema as of application version 2.1.1748. It is maintained by swisstopo and published as this HTML document at https://download.swissgeol.ch/dm_boreholes/boreholes-data-specification.html, with the persistent identifier https://doi.org/10.60695/swisstopo.boreholes.datamodel.2026.

boreholes.swissgeol.ch runs as several instances — public, internal, external, integration and development — which share this schema. General information about the swissgeol platform is available at swissgeol.ch.

How to read this document

Every table is documented in the same order: a short description of what it stores, an entity-relationship excerpt showing its immediate neighbours, its attributes, its foreign keys, and the code lists its attributes draw from. Short code lists are listed in place; long ones are collected in the annex and linked from the attribute that uses them.

Tables are grouped into eight subject domains rather than listed alphabetically, so that related tables are read together. Use the search field in the contents panel to jump straight to a table by name.

Diagram notation

The entity-relationship diagrams are generated with GraphViz. Each box is a database table and lists its columns; each arrow is a foreign key constraint and points from the referencing table to the referenced table. The diagrams show structure only — they carry no information about cardinality, nor about what happens to referencing rows when a referenced row is deleted.

Reading the attribute tables

  • Attribute name
    Column name as it appears in the database.
  • Data type
    PostgreSQL data type.
  • Nullable
    NO means a value is always present. Primary keys and unique constraints are not marked in this specification.
  • Code lists
    Collapsed by default. Open one to see its permitted values, or follow the link to the annex for the longer lists.

Modelling conventions

The following conventions apply throughout the model and are not repeated in each table description.

Record identity and audit columns

Nearly every table carries id as its identifier and the four audit attributes creator, creation, updater and update, referencing the users table and the time of the change. These audit values are shown in the application and are visible to the public.

Code list references

Attributes ending in _id that are not structural foreign keys reference controlled values held in the generic codelist table. Multi-value properties are resolved through dedicated join tables whose names end in _codelist. Some vocabularies are not maintained in this database at all but in the swissgeol vocabulary service lexic.swissgeol.ch.

Depth, elevation and units

All lengths and depths are given in metres unless an attribute description states otherwise.

Measured depth is the depth as actually measured along the borehole — that is, the length of the borehole — and not a vertical projection. Attributes carrying a measured depth are marked with the suffix _md or described as measured depth.

Elevation in this model always means height above sea level.

The reference point is either the surface coordinate of the borehole in XY, or the zero point of the depth measurement. In most cases that zero point is ground level. Where a structure such as a protruding pipe stands above the terrain and depth is measured from there, that point is recorded separately as the reference elevation — see reference_elevation and reference_elevation_type_id in borehole.

The coordinate reference system and the height reference system are stored with the data rather than fixed by this specification: see srs_id and hrs_id in borehole. Coordinates are held both in the current national frame (location_x, location_y) and in the former one (location_x_lv03, location_y_lv03).

Languages

Code list labels are held in the codelist table in English, German, French and Italian (text_en, text_de, text_fr, text_it). Only the English labels are reproduced in this document.

Tables not documented

The tables __EFMigrationsHistory and config serve application purposes only and carry no borehole-relevant content. They are omitted deliberately.

Database structure

This diagram shows the overall database structure. In this diagram the table "user" has been removed for better overview and general clarity. All information on the table "user" can be found in the detailed table descriptions and from respective foreign key constraints.

ERD boreholes.swissgeol.ch — data model overview (generated from SQL_result_ALL_attributes_FKs_05082026.csv) 54 tables, 55 foreign-key relationships. Edges point from child to parent (FK direction). 1:1 = FK column is the primary key of the child table. Not shown as nodes: codelist (master table, referenced by almost every table) and users. Their foreign key columns are still listed: FK→CL marks a column referencing codelist, plain FK a column referencing a domain table (including the hidden users). Beige nodes = association tables linking a domain table to codelist (composite primary key, no further attributes). Not shown at all: config and __EFMigrationsHistory (technical tables). backfill BACKFILL ────────── PK id FK completion_id FK creator FK updater FK casing_id FK→CL kind_id FK→CL material_id + 6 additional attributes casing CASING ────────── PK id FK completion_id FK creator FK updater + 6 additional attributes backfill->casing n:1  casing_id completion COMPLETION ────────── PK id FK borehole_id FK creator FK updater FK→CL kind_id + 6 additional attributes backfill->completion n:1  completion_id borehole BOREHOLE ────────── PK id FK creator FK updater FK locked_by FK workgroup_id FK→CL borehole_type_id FK→CL srs_id FK→CL hrs_id FK→CL restriction_id FK→CL precision_location_id FK→CL precision_elevation_id FK→CL purpose_id FK→CL status_id FK→CL precision_depth_id FK→CL lithology_top_bedrock_id FK→CL lithostratigraphy_top_bedrock_id FK→CL chronostratigraphy_top_bedrock_id FK→CL precision_reference_elevation_id FK→CL reference_elevation_type_id + 29 additional attributes workgroups WORKGROUPS ────────── PK id + 4 additional attributes borehole->workgroups n:1  workgroup_id borehole_geometry BOREHOLE_GEOMETRY ────────── PK id FK borehole_id + 6 additional attributes borehole_geometry->borehole n:1  borehole_id borehole_identifiers_codelist BOREHOLE_IDENTIFIERS_CODELIST ────────── PK id FK borehole_id FK→CL identifier_id + 2 additional attributes borehole_identifiers_codelist->borehole n:1  borehole_id casing->completion n:1  completion_id casing_element CASING_ELEMENT ────────── PK id FK casing_id FK creator FK updater FK→CL kind_id FK→CL material_id + 6 additional attributes casing_element->casing n:1  casing_id chronostratigraphy CHRONOSTRATIGRAPHY ────────── PK id FK stratigraphy_id FK creator FK updater FK→CL chronostratigraphy_id + 4 additional attributes stratigraphy STRATIGRAPHY ────────── PK id FK borehole_id FK updater FK creator + 5 additional attributes chronostratigraphy->stratigraphy n:1  stratigraphy_id completion->borehole n:1  borehole_id document DOCUMENT ────────── PK id FK borehole_id FK creator FK updater + 5 additional attributes document->borehole n:1  borehole_id facies_description FACIES_DESCRIPTION ────────── PK id FK stratigraphy_id FK creator FK updater FK→CL facies_id + 5 additional attributes facies_description->stratigraphy n:1  stratigraphy_id field_measurement FIELD_MEASUREMENT ────────── PK,FK id observation OBSERVATION ────────── PK id FK borehole_id FK creator FK updater FK casing_id FK→CL reliability + 13 additional attributes field_measurement->observation 1:1  id fieldmeasurement_result FIELDMEASUREMENT_RESULT ────────── PK id FK fieldmeasurement_id FK creator FK updater FK→CL sample_type FK→CL parameter + 3 additional attributes fieldmeasurement_result->field_measurement n:1  fieldmeasurement_id groundwater_level_measurement GROUNDWATER_LEVEL_MEASUREMENT ────────── PK,FK id FK→CL kind + 2 additional attributes groundwater_level_measurement->observation 1:1  id hydrotest HYDROTEST ────────── PK,FK id hydrotest->observation 1:1  id hydrotest_evaluationmethod_codelist HYDROTEST_EVALUATIONMETHOD_ CODELIST ────────── PK,FK hydrotest_id PK,FK→CL codelist_id hydrotest_evaluationmethod_codelist->hydrotest n:1  hydrotest_id hydrotest_flowdirection_codelist HYDROTEST_FLOWDIRECTION_ CODELIST ────────── PK,FK hydrotest_id PK,FK→CL codelist_id hydrotest_flowdirection_codelist->hydrotest n:1  hydrotest_id hydrotest_kind_codelist HYDROTEST_KIND_CODELIST ────────── PK,FK hydrotest_id PK,FK→CL codelist_id hydrotest_kind_codelist->hydrotest n:1  hydrotest_id hydrotest_result HYDROTEST_RESULT ────────── PK id FK hydrotest_id FK creator FK updater FK→CL parameter + 5 additional attributes hydrotest_result->hydrotest n:1  hydrotest_id instrumentation INSTRUMENTATION ────────── PK id FK completion_id FK creator FK updater FK casing_id FK→CL kind_id FK→CL status_id + 7 additional attributes instrumentation->casing n:1  casing_id instrumentation->completion n:1  completion_id lithological_description LITHOLOGICAL_DESCRIPTION ────────── PK id FK stratigraphy_id FK creator FK updater + 5 additional attributes lithological_description->stratigraphy n:1  stratigraphy_id lithology LITHOLOGY ────────── PK id FK stratigraphy_id FK creator FK updater FK→CL alteration_degree_id FK→CL compactness_id FK→CL cohesion_id FK→CL humidity_id FK→CL consistency_id FK→CL plasticity_id FK→CL uscs_determination_id + 8 additional attributes lithology->stratigraphy n:1  stratigraphy_id lithology_description LITHOLOGY_DESCRIPTION ────────── PK id FK lithology_id FK creator FK updater FK→CL color_primary_id FK→CL color_secondary_id FK→CL lithology_uncon_main_id FK→CL lithology_uncon_2_id FK→CL lithology_uncon_3_id FK→CL lithology_uncon_4_id FK→CL lithology_uncon_5_id FK→CL lithology_uncon_6_id FK→CL lithology_con_id FK→CL grain_size_id FK→CL grain_angularity_id FK→CL gradation_id FK→CL cementation_id + 4 additional attributes lithology_description->lithology n:1  lithology_id lithology_description_component_con_mineral_codelist LITHOLOGY_DESCRIPTION_ COMPONENT_CON_MINERAL_CODELIST ────────── PK,FK lithology_description_id PK,FK→CL component_con_mineral_id lithology_description_component_con_mineral_codelist->lithology_description n:1  lithology_description_id lithology_description_component_con_particle_codelist LITHOLOGY_DESCRIPTION_ COMPONENT_CON_PARTICLE_ CODELIST ────────── PK,FK lithology_description_id PK,FK→CL component_con_particle_id lithology_description_component_con_particle_codelist->lithology_description n:1  lithology_description_id lithology_description_component_uncon_debris_codelist LITHOLOGY_DESCRIPTION_ COMPONENT_UNCON_DEBRIS_ CODELIST ────────── PK,FK lithology_description_id PK,FK→CL component_uncon_debris_id lithology_description_component_uncon_debris_codelist->lithology_description n:1  lithology_description_id lithology_description_component_uncon_organic_codelist LITHOLOGY_DESCRIPTION_ COMPONENT_UNCON_ORGANIC_ CODELIST ────────── PK,FK lithology_description_id PK,FK→CL component_uncon_organic_id lithology_description_component_uncon_organic_codelist->lithology_description n:1  lithology_description_id lithology_description_grain_angularity_codelist LITHOLOGY_DESCRIPTION_GRAIN_ ANGULARITY_CODELIST ────────── PK,FK lithology_description_id PK,FK→CL grain_angularity_id lithology_description_grain_angularity_codelist->lithology_description n:1  lithology_description_id lithology_description_grain_shape_codelist LITHOLOGY_DESCRIPTION_GRAIN_ SHAPE_CODELIST ────────── PK,FK lithology_description_id PK,FK→CL grain_shape_id lithology_description_grain_shape_codelist->lithology_description n:1  lithology_description_id lithology_description_lithology_uncon_debris_codelist LITHOLOGY_DESCRIPTION_ LITHOLOGY_UNCON_DEBRIS_ CODELIST ────────── PK,FK lithology_description_id PK,FK→CL lithology_uncon_debris_id lithology_description_lithology_uncon_debris_codelist->lithology_description n:1  lithology_description_id lithology_description_structure_post_gen_codelist LITHOLOGY_DESCRIPTION_ STRUCTURE_POST_GEN_CODELIST ────────── PK,FK lithology_description_id PK,FK→CL structure_post_gen_id lithology_description_structure_post_gen_codelist->lithology_description n:1  lithology_description_id lithology_description_structure_syn_gen_codelist LITHOLOGY_DESCRIPTION_ STRUCTURE_SYN_GEN_CODELIST ────────── PK,FK lithology_description_id PK,FK→CL structure_syn_gen_id lithology_description_structure_syn_gen_codelist->lithology_description n:1  lithology_description_id lithology_rock_condition_codelist LITHOLOGY_ROCK_CONDITION_ CODELIST ────────── PK,FK lithology_id PK,FK→CL rock_condition_id lithology_rock_condition_codelist->lithology n:1  lithology_id lithology_texture_meta_codelist LITHOLOGY_TEXTURE_META_ CODELIST ────────── PK,FK lithology_id PK,FK→CL texture_meta_id lithology_texture_meta_codelist->lithology n:1  lithology_id lithology_uscs_type_codelist LITHOLOGY_USCS_TYPE_CODELIST ────────── PK,FK lithology_id PK,FK→CL uscs_type_id lithology_uscs_type_codelist->lithology n:1  lithology_id lithostratigraphy LITHOSTRATIGRAPHY ────────── PK id FK stratigraphy_id FK creator FK updater FK→CL lithostratigraphy_id + 4 additional attributes lithostratigraphy->stratigraphy n:1  stratigraphy_id log_file LOG_FILE ────────── PK id FK log_run_id FK creator FK updater FK→CL pass_type_id FK→CL data_package_id FK→CL depth_type_id + 7 additional attributes log_run LOG_RUN ────────── PK id FK borehole_id FK creator FK updater FK→CL conveyance_method_id FK→CL borehole_status_id + 9 additional attributes log_file->log_run n:1  log_run_id log_file_tool_type_codelist LOG_FILE_TOOL_TYPE_CODELIST ────────── PK,FK logfile_id PK,FK→CL codelist_id log_file_tool_type_codelist->log_file n:1  logfile_id log_run->borehole n:1  borehole_id maintenance_task_log MAINTENANCE_TASK_LOG ────────── PK id FK started_by_id + 9 additional attributes observation->borehole n:1  borehole_id observation->casing n:1  casing_id photo PHOTO ────────── PK id FK borehole_id FK creator FK updater + 8 additional attributes photo->borehole n:1  borehole_id profile PROFILE ────────── PK id FK borehole_id FK creator FK updater + 8 additional attributes profile->borehole n:1  borehole_id roles ROLES ────────── PK id + 2 additional attributes section SECTION ────────── PK id FK borehole_id FK creator FK updater + 3 additional attributes section->borehole n:1  borehole_id section_element SECTION_ELEMENT ────────── PK id FK section_id FK creator FK updater FK→CL drilling_method_id FK→CL cuttings_id FK→CL mud_type_id FK→CL mud_subtype_id + 9 additional attributes section_element->section n:1  section_id stratigraphy->borehole n:1  borehole_id tab_status TAB_STATUS ────────── PK tab_status_id + 19 additional attributes terms TERMS ────────── PK id + 8 additional attributes terms_accepted TERMS_ACCEPTED ────────── PK,FK user_id PK,FK term_id + 1 additional attribute terms_accepted->terms n:1  term_id users_roles USERS_ROLES ────────── PK,FK user_id PK,FK role_id PK,FK workgroup_id users_roles->roles n:1  role_id users_roles->workgroups n:1  workgroup_id water_ingress WATER_INGRESS ────────── PK,FK id FK→CL quantity FK→CL conditions water_ingress->observation 1:1  id workflow WORKFLOW ────────── PK id FK borehole_id FK reviewed_tabs_id FK published_tabs_id FK assignee_id + 2 additional attributes workflow->borehole n:1  borehole_id workflow->tab_status n:1  reviewed_tabs_id workflow->tab_status n:1  published_tabs_id workflow_change WORKFLOW_CHANGE ────────── PK workflow_change_id FK workflow_id FK created_by_id FK assignee_id + 4 additional attributes workflow_change->workflow n:1  workflow_id
Overall database structure. Zoom in and scroll inside the frame to read the table boxes.

The diagram is embedded as a vector graphic: text stays sharp at any zoom level and can be searched with the browser. The users table is omitted from the diagram because its relationships connect to nearly every other table.

The eight domains

  • Borehole location, general, section and trajectory
    The central borehole record with its location and general properties, external identifiers, the drilled sections and their successive elements, and the calculated trajectory.
  • Stratigraphy and lithology
    Layer-based geological interpretation of the borehole, plus the multi-value code lists that qualify each layer.
  • Completion and installation
    What was built into the borehole after drilling: casings, backfill and sealing, and instrumentation.
  • Hydrogeology and field tests
    Observations and measurements made in the borehole, from water ingress during drilling to hydraulic tests.
  • Logging
    Geophysical logging: runs, the resulting log files, and the tool types used.
  • Profiles, photos and documents
    Content attached to a borehole: geological profiles, photographs, and reports and other documents.
  • Code list infrastructure
    The generic table that holds the controlled values referenced throughout the model.
  • Users, workgroups and workflow
    Application tables governing who may see and edit which data, the publication workflow, and the execution log of automated maintenance tasks.

The grouping is editorial: it organises the reference section for reading and has no counterpart in the database itself.

Glossary and abbreviations

ERD
Entity-relationship diagram.
PK / FK
Primary key / foreign key.
Code list
A closed set of permitted values for an attribute, each with a stable numeric identifier.
con / uncon
Consolidated rock / unconsolidated deposits.
srs / hrs
Spatial reference system / height reference system.
USCS
Unified Soil Classification System.
lexic
The swissgeol vocabulary service at lexic.swissgeol.ch, which holds the geological vocabularies that are not maintained inside this database.

Borehole location, general, section and trajectory

The central borehole record with its location and general properties, external identifiers, the drilled sections and their successive elements, and the calculated trajectory.

5 tables

#borehole

Stores the primary borehole record, including general information such as name, location, type, purpose, top bedrock, and other fundamental borehole attributes.

48 attributes / 4 foreign keys / 14 code lists

ERD excerpt for borehole. Select to enlarge.

Attributes

Attributes of table borehole
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updateDate and time of the last update.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
lockedDate and time when the record was locked.timestamp with time zoneYES
locked_byUser who locked the record.integerYES
workgroup_idReference to the related workgroups record.integerYES
publicLegacy field retained from previous versions; always set to NULL.booleanYES
restriction_idReference to a codelist defining the restriction category.integerYES
restriction_untilStates until when the access to a record is restricted .dateYES
original_nameOriginal borehole name preserved from the source documentation.character varyingYES
nameBorehole name intended for publication. May differ from the original name to exclude personal information (e.g. the owner's name or address).character varyingYES
project_nameName of the related project.character varyingYES
borehole_type_idReference to the codelist defining the borehole type.integerYES
purpose_idReference to the codelist defining the purpose.integerYES
status_idReference to the codelist defining the status.integerYES
location_xX coordinate of location in LV95 (EPSG:2056).double precisionYES
location_yY coordinate of location in LV95 (EPSG:2056).double precisionYES
location_x_lv03X coordinate of location in LV03 (EPSG:21781).double precisionYES
location_y_lv03Y coordinate of location in LV03 (EPSG:21781).double precisionYES
srs_idReference to the codelist defining the spatial reference system.integerYES
geometrySpatial geometry representing the borehole location (point geometry).geometryYES
hrs_idReference to a codelist defining the height reference system.integerYES
elevation_zGround elevation at the borehole location, which may differ from the elevation of the borehole reference point.double precisionYES
reference_elevationReference point used for all borehole depth measurements.double precisionYES
reference_elevation_type_idReference to the codelist defining the reference elevation type.integerYES
total_depthTotal depth of the borehole.double precisionYES
precision_location_xIndicates the number of digits used to represent the X coordinate (LV95, EPSG:2056), allowing its precision to be visualised correctly.integerYES
precision_location_yIndicates the number of digits used to represent the Y coordinate (LV95, EPSG:2056), allowing its precision to be visualised correctly.integerYES
precision_location_x_lv03Indicates the number of digits used to represent the X coordinate (LV03, EPSG:21781), allowing its precision to be visualised correctly.integerYES
precision_location_y_lv03Indicates the number of digits used to represent the Y coordinate (LV03, EPSG:21781), allowing its precision to be visualised correctly.integerYES
precision_location_idReference to the codelist defining the p recision of the coordinates.integerYES
precision_elevation_idReference to the codelist defining the elevation precision.integerYES
precision_reference_elevation_idReference to the codelist defining the reference point precision.integerYES
precision_depth_idReference to the codelist defining the depth precision.integerYES
countryCountry in which the borehole is located.textYES
cantonSwiss canton in which borehole surface location is located.textYES
municipalitySwiss municipality in which borehole surface location is located.textYES
national_interestIndicates whether the borehole is designated as being of national interest.booleanYES
groundwaterWhether or not groundwater has been encountered.booleanYES
top_bedrock_fresh_mdDepth at which the top of the fresh bedrock was first encountered.double precisionYES
top_bedrock_weathered_mdDepth at which the top of the weathered bedrock was first encountered.double precisionYES
top_bedrock_intersectedIndicates whether bedrock has been encountered.booleanYES
lithology_top_bedrock_idReference to the codelist defining the lithology of top bedrock.integerYES
lithostratigraphy_top_bedrock_idReference to the codelist defining the lithostratigraphy of top bedrock.integerYES
chronostratigraphy_top_bedrock_idReference to the codelist defining the chronostratigraphy of top bedrock.integerYES
remarksAdditional descriptive or contextual remarks.character varyingYES

Foreign key relationships

Foreign keys of table borehole
Attribute NameForeign TableForeign Column
creatorusersid
updaterusersid
locked_byusersid
workgroup_idworkgroupsid

Code lists

borehole_type_id7 values

Id Label (English)

Values of code list borehole_type_id
IdLabel (English)
20101001borehole
30000307virtual borehole
20101002penetration test
20101003trial pit
20101006outcrop
20101004other
20101005not specified
srs_id2 values

Id Label (English)

Values of code list srs_id
IdLabel (English)
20104001CH1903+ LV 95 (EPSG:2056)
20104002CH1903 LV 03 (EPSG:21781)
hrs_id1 values

Id Label (English)

Values of code list hrs_id
IdLabel (English)
20106001LN02
restriction_id4 values

Id Label (English)

Values of code list restriction_id
IdLabel (English)
20111001free
20111002restricted
20111003restricted until
20111004not specified
precision_location_id7 values

Id Label (English)

Values of code list precision_location_id
IdLabel (English)
20113001100
2011300250
2011300310
201130045 (± GPS )
201130050.1 (± DGPS / Theodolit)
20113006reconstructed
20113007not specified
precision_elevation_id7 values

Id Label (English)

Values of code list precision_elevation_id
IdLabel (English)
2011400110
201140025
201140031
201140040.5
201140050.1
20114006reconstructed
20114007not specified
purpose_id24 values · in annex

This codelist contains 24 values. Full values are documented in Annex — drilling_purpose.

status_id9 values

Id Label (English)

Values of code list status_id
IdLabel (English)
22104001open, no completion
22104002filled
22104003decayed
22104004covered, inaccessible
22104005cased, measurements possible
22104006cased, in use
22104007cased, measurements impossible
22104008other
22104009not specified
precision_depth_id6 values

Id Label (English)

Values of code list precision_depth_id
IdLabel (English)
221080012
221080021
221080030.5
221080040.1
22108005estimated
22108006not specified
lithology_top_bedrock_idsee note

This codelist contains 643 values. Full values are documented in the annex.

lithostratigraphy_top_bedrock_idsee note

This codelist contains 1629 values. Full values are documented in Annex — lithostratigraphy.

chronostratigraphy_top_bedrock_idsee note

This codelist contains 140 values. Full values are documented in Annex — chronostratigraphy.

precision_reference_elevation_id7 values

Id Label (English)

Values of code list precision_reference_elevation_id
IdLabel (English)
2011400110
201140025
201140031
201140040.5
201140050.1
20114006reconstructed
20114007not specified
reference_elevation_type_id7 values

Id Label (English)

Values of code list reference_elevation_type_id
IdLabel (English)
20117001ground surface
20117002casing top
20117003rotary table
30000013kelly bushing
20117004manhole cover
20117005other
20117006not specified

#borehole_identifiers_codelist

Stores external and internal identifiers assigned to the borehole by cantons, information systems, and projects.

5 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table borehole_identifiers_codelist
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
identifier_idReference to the codelist defining the identifier origin.integerNO
identifier_valueThe identifier value of the borehole record.character varyingNO
commentComment regarding the identifier record (e.g. identifier of which canton).textYES

Foreign key relationships

Foreign keys of table borehole_identifiers_codelist
Attribute NameForeign TableForeign Column
borehole_idboreholeid

Code lists

identifier_id6 values

Id Label (English)

Values of code list identifier_id
IdLabel (English)
100000004original ID
100000000GeODin ID
100000003InfoGeol ID
100000005canton ID
100000006GeoQuat ID
100000007GeoMol ID

#section

Stores information about individual drilled sections of a borehole.

7 attributes / 3 foreign keys

ERD excerpt for section. Select to enlarge.

Attributes

Attributes of table section
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
nameSection name.textNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table section
Attribute NameForeign TableForeign Column
borehole_idboreholeid
creatorusersid
updaterusersid

#section_element

Stores information about individual borehole section elements. Multiple section elements can be defined for the same borehole section to represent successive drilling phases, such as reaming or overcoring, thereby preserving the complete borehole history.

17 attributes / 3 foreign keys / 3 code lists

ERD excerpt for section_element. Select to enlarge.

Attributes

Attributes of table section_element
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
section_idReference to the related section record.integerNO
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO
orderSequence number of the section element based on the recording order.integerNO
drilling_method_idReference to the codelist defining the drilling method.integerYES
drilling_start_dateStart drilling date.dateYES
drilling_end_dateEnd drilling date.dateYES
cuttings_idReference to the code list defining whether the borehole was cored or drilled destructively.integerYES
drilling_diameterIndicates the drilling diameter of the borehole section.double precisionYES
drilling_core_diameterIndicates the core diameter of the borehole section.double precisionYES
mud_type_idReference to the codelist defining the mud type.integerYES
mud_subtype_idReference to the codelist defining the mud subtype.integerYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table section_element
Attribute NameForeign TableForeign Column
section_idsectionid
creatorusersid
updaterusersid

Code lists

drilling_method_id15 values

Id Label (English)

Values of code list drilling_method_id
IdLabel (English)
22107006manual drilling
22107003dynamic probing
22107011direct push soil sampling
22107013percussion drilling
22107008rotary drilling
22107015reverse circulation drilling
22107004rotary coring
22107016wireline core drilling
22107007shaft drilling
22107009trench
22107012grab drilling
22107014piling
22107017auger drilling
22107019other
22107018not specified
cuttings_id5 values

Id Label (English)

Values of code list cuttings_id
IdLabel (English)
22102001core
22102002cuttings
22102004not drilled
22102007not specified
22102006other
mud_type_id / mud_subtype_id23 values · in annex

This code list contains 23 values representing both mud_type and mud_subtype. The distinction between the two is handled in the application frontend. The complete list of values is documented in Annex — drilling_mud_type.

#borehole_geometry

Stores the calculated borehole trajectory based on the minimum curvature algorithm. The trajectory may consist of multiple geometry segments.

8 attributes / 1 foreign keys

ERD excerpt for borehole_geometry. Select to enlarge.

Attributes

Attributes of table borehole_geometry
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
XX coordinate relative to the borehole reference point.double precisionNO
YY coordinate relative to the borehole reference point.double precisionNO
ZZ coordinate relative to the borehole reference point.double precisionNO
DEVIDeviation angle of the borehole trajectory from the vertical.double precisionYES
HAZIAzimuth of the borehole trajectory.double precisionYES
MDMeasured depth along the borehole trajectory.double precisionNO

Foreign key relationships

Foreign keys of table borehole_geometry
Attribute NameForeign TableForeign Column
borehole_idboreholeid

Stratigraphy and lithology

Layer-based geological interpretation of the borehole, plus the multi-value code lists that qualify each layer.

19 tables

#stratigraphy

Stores the common information shared by lithology, lithostratigraphy, and chronostratigraphy records.

9 attributes / 3 foreign keys

ERD excerpt for stratigraphy. Select to enlarge.

Attributes

Attributes of table stratigraphy
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
nameStratigraphy name.textNO
dateDate on which the stratigraphy was recorded.timestamp with time zoneYES
is_primaryWhether or not it is the primary stratigraphy of the borehole.booleanNO
updateDate and time of the last update.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
creatorUser who created the record.integerYES

Foreign key relationships

Foreign keys of table stratigraphy
Attribute NameForeign TableForeign Column
borehole_idboreholeid
updaterusersid
creatorusersid

#lithological_description

Stores the detailed lithological description of each borehole layer as originally documented.

9 attributes / 3 foreign keys

ERD excerpt for lithological_description. Select to enlarge.

Attributes

Attributes of table lithological_description
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
stratigraphy_idReference to the related stratigraphy record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
descriptionOriginal lithological description of the layer.textYES
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO

Foreign key relationships

Foreign keys of table lithological_description
Attribute NameForeign TableForeign Column
stratigraphy_idstratigraphyid
creatorusersid
updaterusersid

#lithology

Stores detailed, structured, and harmonised lithological descriptions based on multiple attributes. The applicable attributes differ for consolidated and unconsolidated rock.

19 attributes / 3 foreign keys / 7 code lists

ERD excerpt for lithology. Select to enlarge.

Attributes

Attributes of table lithology
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
stratigraphy_idReference to the related stratigraphy record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO
unconsolidatedIndicates whether the layer is classified as unconsolidated. If false, the layer is classified as consolidated. If NULL, the consolidation status is unknown.booleanYES
beddingIndicates whether the layer is classified as "Alternating bedding".booleanNO
bedding_sharePercentage of the first lithology within the alternating bedding of the layer.integerYES
alteration_degree_idReference to the codelist defining the alteration degree.integerYES
notesAdditional comments or contextual remarks.textYES
compactness_idReference to the codelist defining the compactness.integerYES
cohesion_idReference to the codelist defining the cohesion.integerYES
humidity_idReference to the codelist defining the humidity.integerYES
consistency_idReference to the codelist defining the consistency.integerYES
plasticity_idReference to the codelist defining the plasticity.integerYES
uscs_determination_idReference to the codelist defining the uscs determination.integerYES

Foreign key relationships

Foreign keys of table lithology
Attribute NameForeign TableForeign Column
stratigraphy_idstratigraphyid
creatorusersid
updaterusersid

Code lists

alteration_degree_id8 values

Id Label (English)

Values of code list alteration_degree_id
IdLabel (English)
100000172fresh
100002996weathered
100000173slightly weathered
100000174moderately weathered
100000175highly weathered
100000176completely weathered
100000177other
100000178not specified
compactness_id7 values

Id Label (English)

Values of code list compactness_id
IdLabel (English)
21102001very loose
21102002loose
21102003moderately loose
21102005dense
21102006very dense
21102007not specified
100000488other
cohesion_id6 values

Id Label (English)

Values of code list cohesion_id
IdLabel (English)
21116001non-cohesive
21116002slightly cohesive
21116003cohesive
21116004very cohesive
21116005not specified
100000489other
humidity_id6 values

Id Label (English)

Values of code list humidity_id
IdLabel (English)
21105001dry
21105002earth-moist
21105003moist
21105004wet
21105005not specified
100000490other
consistency_id8 values

Id Label (English)

Values of code list consistency_id
IdLabel (English)
21103001very soft
21103002soft
21103003medium stiff
21103004stiff
21103008hard
21103009very hard
21103010not specified
100000491other
plasticity_id7 values

Id Label (English)

Values of code list plasticity_id
IdLabel (English)
21101001non plasticity
21101002slight plasticity
21101003low plasticity
21101004medium plasticity
21101005high plasticity
21101006not specified
100000492other
uscs_determination_id5 values

Id Label (English)

Values of code list uscs_determination_id
IdLabel (English)
23107001field
23107002laboratory
23107003third-party interpretation
23107004not specified
100000493other

#lithology_description

Stores detailed, structured, and harmonised lithological descriptions, allowing multiple records for the same layer to represent alternating bedding.

21 attributes / 3 foreign keys / 9 code lists

ERD excerpt for lithology_description. Select to enlarge.

Attributes

Attributes of table lithology_description
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
lithology_idReference to the related lithology record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
firstIndicates whether this record represents the first lithology in the alternating bedding (true) or the second lithology (false).booleanNO
color_primary_idReference to the codelist defining the primary color.integerYES
color_secondary_idReference to the codelist defining the secondary color.integerYES
lithology_uncon_main_idReference to the codelist defining the main unconsolidated lithology.integerYES
lithology_uncon_2_idReference to the codelist defining the second unconsolidated lithology.integerYES
lithology_uncon_3_idReference to the codelist defining the third unconsolidated lithology.integerYES
lithology_uncon_4_idReference to the codelist defining the fourth unconsolidated lithology.integerYES
lithology_uncon_5_idReference to the codelist defining the fifth unconsolidated lithology.integerYES
lithology_uncon_6_idReference to the codelist defining the sixth unconsolidated lithology.integerYES
striaeIndicates whether the pebbles or rubble exhibit glacial striations on their surfaces.booleanNO
lithology_con_idReference to the codelist defining the consolidated lithology.integerYES
grain_size_idReference to the codelist defining the grain size.integerYES
grain_angularity_idReference to the codelist defining the grain angularity.integerYES
gradation_idReference to the codelist defining the gradation.integerYES
cementation_idReference to the codelist defining the cementation.integerYES

Foreign key relationships

Foreign keys of table lithology_description
Attribute NameForeign TableForeign Column
lithology_idlithologyid
creatorusersid
updaterusersid

Code lists

color_primary_id91 values · in annex

This codelist contains 91 values. Full values are documented in Annex — color.

color_secondary_id91 values · in annex

This codelist contains 91 values. Full values are documented in Annex — color.

lithology_uncon_main_id24 values · in annex

This codelist contains 24 values. Full values are documented in Annex — lithology_uncon_main.

lithology_uncon_2_id, lithology_uncon_3_id, lithology_uncon_4_id, lithology_uncon_5_id, lithology_uncon_6_id20 values

All 5 attributes use the same identical codelist. Id Label (English)

Values of code list lithology_uncon_2_id, lithology_uncon_3_id, lithology_uncon_4_id, lithology_uncon_5_id, lithology_uncon_6_id
IdLabel (English)
100000036coarse blocky / with large blocks
100000037blocky / with blocks
100000038stony / with stones
100000039gravelly
100000040fine gravelly
100000041fine to medium gravelly
100000042medium gravelly
100000043medium to coarse gravelly
100000044coarse gravelly
100000045sandy
100000046fine sandy
100000047fine to medium sandy
100000048medium sandy
100000049medium to coarse sandy
100000050coarse sandy
100000051silty
100000052clayey
100000053with organic inclusion
100000054other
100000055not specified
lithology_con_idsee note

This codelist contains 643 values. Full values are documented in Annex — lithology_con.

grain_size_id7 values

Id Label (English)

Values of code list grain_size_id
IdLabel (English)
100000497very fine
21109001fine
21109003medium
21109005coarse
100000498very coarse
100000499other
21109007not specified
grain_angularity_id8 values

Id Label (English)

Values of code list grain_angularity_id
IdLabel (English)
21115001very angular
21115003angular
21115004sub-angular
21115005sub-rounded
21115006rounded
21115007well rounded
100000487other
21115008not specified
gradation_id7 values

Id Label (English)

Values of code list gradation_id
IdLabel (English)
30000015very well-sorted
30000016well sorted
30000017moderately sorted
30000018poorly sorted
30000019very poorly sorted
100000494other
100000495not specified
cementation_id7 values

Id Label (English)

Values of code list cementation_id
IdLabel (English)
100000356uncemented
100000357weakly cemented
100000358moderately cemented
100000359well cemented
100000360strongly cemented
100000361other
100000362not specified

#facies_description

Stores information about interpreted facies.

10 attributes / 3 foreign keys / 1 code lists

ERD excerpt for facies_description. Select to enlarge.

Attributes

Attributes of table facies_description
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
stratigraphy_idReference to the related stratigraphy record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
descriptionOriginal geological layer description.textYES
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO
facies_idReference to the codelist defining the facies (depositional environments).integerYES

Foreign key relationships

Foreign keys of table facies_description
Attribute NameForeign TableForeign Column
stratigraphy_idstratigraphyid
creatorusersid
updaterusersid

Code lists

facies_id154 values · in annex

This codelist contains 154 values. Full values are documented in Annex — facies_con.

#chronostratigraphy

Stores chronostratigraphic interpretations assigned to geological intervals.

9 attributes / 3 foreign keys / 1 code lists

ERD excerpt for chronostratigraphy. Select to enlarge.

Attributes

Attributes of table chronostratigraphy
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
stratigraphy_idReference to the related stratigraphy record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionYES
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionYES
chronostratigraphy_idReference to the codelist defining the chronostratigraphical concept.integerYES

Foreign key relationships

Foreign keys of table chronostratigraphy
Attribute NameForeign TableForeign Column
stratigraphy_idstratigraphyid
creatorusersid
updaterusersid

Code lists

chronostratigraphy_idsee note

This codelist contains 140 values. Full values are documented in Annex — chronostratigraphy.

#lithostratigraphy

Stores lithostratigraphic interpretations assigned to geological intervals.

9 attributes / 3 foreign keys / 1 code lists

ERD excerpt for lithostratigraphy. Select to enlarge.

Attributes

Attributes of table lithostratigraphy
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
stratigraphy_idReference to the related stratigraphy record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO
lithostratigraphy_idReference to the codelist defining the lithostratigraphy.integerYES

Foreign key relationships

Foreign keys of table lithostratigraphy
Attribute NameForeign TableForeign Column
stratigraphy_idstratigraphyid
creatorusersid
updaterusersid

Code lists

lithostratigraphy_idsee note

This codelist contains 1629 values. Full values are documented in Annex — lithostratigraphy.

#lithology_description_component_con_mineral_codelist

Association table (n:m) linking lithology_description to one or more accessory minerals of consolidated rock.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_component_con_mineral_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
component_con_mineral_idReference to the codelist defining the accessory minerals.integerNO

Foreign key relationships

Foreign keys of table lithology_description_component_con_mineral_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

component_con_mineral_id111 values · in annex

This codelist contains 111 values. Full values are documented in Annex — component_con_mineral.

#lithology_description_component_con_particle_codelist

Association table (n:m) linking lithology_description to one or more accessory components of consolidated rock.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_component_con_particle_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
component_con_particle_idReference to the codelist defining the assessory components.integerNO

Foreign key relationships

Foreign keys of table lithology_description_component_con_particle_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

component_con_particle_id66 values · in annex

This codelist contains 66 values. Full values are documented in Annex — component_con_particle.

#lithology_description_component_uncon_debris_codelist

Association table (n:m) linking lithology_description to one or more unclassifiable coarse components of unconsolidated rock.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_component_uncon_debris_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
component_uncon_debris_idReference to the codelist defining the unclassifiable coarse components.integerNO

Foreign key relationships

Foreign keys of table lithology_description_component_uncon_debris_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

component_uncon_debris_id7 values

Id Label (English)

Values of code list component_uncon_debris_id
IdLabel (English)
9100erratic block
9101rubble
9102bed load
9103fragments, splitters
9104tufa
100002998other
9105not specified

#lithology_description_component_uncon_organic_codelist

Association table (n:m) linking lithology_description to one or more organic components of unconsolidated rock.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_component_uncon_organic_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
component_uncon_organic_idReference to the codelist defining the organic components.integerNO

Foreign key relationships

Foreign keys of table lithology_description_component_uncon_organic_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

component_uncon_organic_id11 values

Id Label (English)

Values of code list component_uncon_organic_id
IdLabel (English)
21108001earth
21108002humus
21108003undifferenciated organic material
21108004roots
21108005remains of wood
21108006remains of plants
21108007coal
21108008peat
21108009varves
100002997other
21108010not specified

#lithology_description_grain_angularity_codelist

Association table (n:m) linking lithology_description to one or more grain angularity.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_grain_angularity_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
grain_angularity_idReference to the codelist defining the grain angularities.integerNO

Foreign key relationships

Foreign keys of table lithology_description_grain_angularity_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

grain_angularity_id8 values

Id Label (English)

Values of code list grain_angularity_id
IdLabel (English)
21115001very angular
21115003angular
21115004sub-angular
21115005sub-rounded
21115006rounded
21115007well rounded
100000487other
21115008not specified

#lithology_description_grain_shape_codelist

Association table (n:m) linking lithology_description to one or more grain shapes.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_grain_shape_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
grain_shape_idReference to the codelist defining the grain shapes.integerNO

Foreign key relationships

Foreign keys of table lithology_description_grain_shape_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

grain_shape_id5 values

Id Label (English)

Values of code list grain_shape_id
IdLabel (English)
21110002cubic
21110003platy
21110004elongated
100000486other
21110005not specified

#lithology_description_lithology_uncon_debris_codelist

Association table (n:m) linking lithology_description to one or more lithologies of coarse components.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_lithology_uncon_debris_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
lithology_uncon_debris_idReference to the code list defining the lithologies of coarse components (the same code list as used for consolidated lithologies).integerNO

Foreign key relationships

Foreign keys of table lithology_description_lithology_uncon_debris_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

lithology_con_idsee note

The codelist lithology_con_id is applicable to the attribute lithology_uncon_debris_id. This codelist contains 643 values. Full values are documented in Annex — lithology_con.

#lithology_description_structure_post_gen_codelist

Association table (n:m) linking lithology_description to one or more postgenetic structures.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_structure_post_gen_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
structure_post_gen_idReference to the codelist defining the post genetic structures.integerNO

Foreign key relationships

Foreign keys of table lithology_description_structure_post_gen_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

structure_post_gen_id43 values · in annex

This codelist contains 43 values. Full values are documented in Annex — structure_post_gen.

#lithology_description_structure_syn_gen_codelist

Association table (n:m) linking lithology_description to one or more syngenetic structures.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_description_structure_syn_gen_codelist
Attribute NameDescriptionData TypeNullable
lithology_description_idReference to the related lithology description record.integerNO
structure_syn_gen_idReference to the codelist defining the syngenetic structures.integerNO

Foreign key relationships

Foreign keys of table lithology_description_structure_syn_gen_codelist
Attribute NameForeign TableForeign Column
lithology_description_idlithology_descriptionid

Code lists

structure_syn_gen_id60 values · in annex

This codelist contains 60 values. Full values are documented in Annex — structure_syn_gen.

#lithology_rock_condition_codelist

Association table (n:m) linking lithology to one or more rock conditions.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_rock_condition_codelist
Attribute NameDescriptionData TypeNullable
lithology_idReference to the related lithology record.integerNO
rock_condition_idReference to the codelist defining the rock conditions.integerNO

Foreign key relationships

Foreign keys of table lithology_rock_condition_codelist
Attribute NameForeign TableForeign Column
lithology_idlithologyid

Code lists

rock_condition_id7 values

Id Label (English)

Values of code list rock_condition_id
IdLabel (English)
100000165disaggregated
100000166decomposed
100000167subsided
100000168displaced
100000169glided
100000170other
100000171not specified

#lithology_texture_meta_codelist

Association table (n:m) linking lithology to one or more metamorphic texture / fabric.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_texture_meta_codelist
Attribute NameDescriptionData TypeNullable
lithology_idReference to the related lithology record.integerNO
texture_meta_idReference to the codelist defining the metamorphic textures / fabrics.integerNO

Foreign key relationships

Foreign keys of table lithology_texture_meta_codelist
Attribute NameForeign TableForeign Column
lithology_idlithologyid

Code lists

texture_meta_id20 values

Id Label (English)

Values of code list texture_meta_id
IdLabel (English)
100000466massive
100000467layered
100000468foliated
100000469phyllitic
100000470schistose
100000471banded
100000472platy
100000473augen-textured
100000474lenticular
100000475flaser-textured
100000476streaky
100000477migmatitic
100000478granoblastic
100000479lepidoblastic
100000480nematoblastic
100000481porphyroblastic
100000482xenoblastic
100000483idioblastic
100000484other
100000485not specified

#lithology_uscs_type_codelist

Association table (n:m) linking lithology to one or more USCS class.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table lithology_uscs_type_codelist
Attribute NameDescriptionData TypeNullable
lithology_idReference to the related lithology record.integerNO
uscs_type_idReference to the codelist defining the USCS classes.integerNO

Foreign key relationships

Foreign keys of table lithology_uscs_type_codelist
Attribute NameForeign TableForeign Column
lithology_idlithologyid

Code lists

uscs_type_id29 values · in annex

This codelist contains 29 values. Full values are documented in Annex — uscs_type.

Completion and installation

What was built into the borehole after drilling: casings, backfill and sealing, and instrumentation.

5 tables

#completion

Stores the common information shared by casing, instrumentation, and sealing / backfilling records.

11 attributes / 3 foreign keys / 1 code lists

ERD excerpt for completion. Select to enlarge.

Attributes

Attributes of table completion
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
is_primaryWhether or not this is the primary completion.booleanNO
nameName of the completion.textYES
kind_idReference to a codelist regarding the type borehole architecture type.integerNO
notesAdditional comments or contextual remarks.textYES
abandon_dateDate when completed borehole has been abandoned.dateYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table completion
Attribute NameForeign TableForeign Column
borehole_idboreholeid
creatorusersid
updaterusersid

Code lists

kind_id3 values

Id Label (English)

Values of code list kind_id
IdLabel (English)
16000000no casing
16000001telescopic
16000002in parallel

#casing

Stores information about casing installations associated with borehole completion.

10 attributes / 3 foreign keys

ERD excerpt for casing. Select to enlarge.

Attributes

Attributes of table casing
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
completion_idReference to the related completion record.integerNO
nameName of the casing.textNO
date_startStart date of casing installation.dateYES
date_finishEnd date of casing installation.dateYES
notesAdditional comments or contextual remarks regarding the casing.textYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table casing
Attribute NameForeign TableForeign Column
completion_idcompletionid
creatorusersid
updaterusersid

#casing_element

Stores information regarding individual elements of the casing.

12 attributes / 3 foreign keys / 2 code lists

ERD excerpt for casing_element. Select to enlarge.

Attributes

Attributes of table casing_element
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
casing_idReference to the related casing record.integerNO
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO
kind_idReference to the codelist defining the type of casing.integerNO
material_idReference to the codelist defining the material.integerYES
diameter_innerInner diameter of the casing element, in millimetres.double precisionYES
diameter_outerOuter diameter of casing element, in millimetres.double precisionYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table casing_element
Attribute NameForeign TableForeign Column
casing_idcasingid
creatorusersid
updaterusersid

Code lists

kind_id12 values

Id Label (English)

Values of code list kind_id
IdLabel (English)
25000118temporary protective casing
25000100blank casing
25000101screened casing
25000102conductor pipe
30000014liner hanger
25000121liner
25000116U-probe
25000119U-probe with geotextile sock
25000117double U-probe
25000120double U-probe with geotextile sock
25000106other
25000107not specified
material_id8 values

Id Label (English)

Values of code list material_id
IdLabel (English)
25000108PVC (polyvinyl chloride)
25000109HDPE (high density polyethylene)
25000110plastic (unspecified)
25000111steel
25000112stainless steel
25000113concrete
25000115not specified
25000114other

#backfill

Stores information about borehole backfilling and sealing intervals, including the associated materials.

13 attributes / 4 foreign keys / 2 code lists

ERD excerpt for backfill. Select to enlarge.

Attributes

Attributes of table backfill
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
completion_idReference to the related completion record.integerNO
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionYES
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionYES
kind_idReference to the codelist defining the type of the sealing/backfilling.integerYES
material_idReference to the codelist defining the sealing/backfilling material.integerYES
notesAdditional comments or contextual remarks.textYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
casing_idReference to the related casing record.integerYES
is_open_boreholeIndicates whether the borehole is cased. If true, casing_id references the associated casing; if false, the borehole is open.booleanNO

Foreign key relationships

Foreign keys of table backfill
Attribute NameForeign TableForeign Column
completion_idcompletionid
creatorusersid
updaterusersid
casing_idcasingid

Code lists

kind_id5 values

Id Label (English)

Values of code list kind_id
IdLabel (English)
25000300borehole plugging
25000301annular sealing
25000302casing plugging
25000303other
25000304not specified
material_id10 values

Id Label (English)

Values of code list material_id
IdLabel (English)
25000305cuttings
25000306filter gravel
25000307filter sand
25000308cement
25000314cement-bentonite grout
25000309clay pellets
25000313resin
25000310packer
25000311other
25000312not specified

#instrumentation

Stores monitoring and measurement instrumentation installed in boreholes.

14 attributes / 4 foreign keys / 2 code lists

ERD excerpt for instrumentation. Select to enlarge.

Attributes

Attributes of table instrumentation
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
completion_idReference to the related completion record.integerNO
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionYES
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionYES
nameInstrumentation device name.textYES
kind_idReference to the codelist defining the type of instrumentation.integerYES
status_idReference to the codelist defining the status of instrumentation.integerYES
notesAdditional comments or contextual remarks.textYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
casing_idReference to the related casing record.integerYES
is_open_boreholeIndicates whether the borehole is cased. If true, casing_id references the associated casing; if false, the borehole is open.booleanNO

Foreign key relationships

Foreign keys of table instrumentation
Attribute NameForeign TableForeign Column
completion_idcompletionid
creatorusersid
updaterusersid
casing_idcasingid

Code lists

kind_id13 values

Id Label (English)

Values of code list kind_id
IdLabel (English)
25000200pump unspecified
25000201submersible pump
25000202suction pump
25000203pressure sensor
25000204pore water pressure sensor (filter cartridge)
25000205pressure gauge
25000206temperature sensor
25000207pH probe
25000208conductivity probe
25000209oxygen probe
25000210redox probe
25000211other
25000212not specified
status_id5 values

Id Label (English)

Values of code list status_id
IdLabel (English)
25000213active
25000214inactive
25000215removed
25000216other
25000217not specified

Hydrogeology and field tests

Observations and measurements made in the borehole, from water ingress during drilling to hydraulic tests.

10 tables

#observation

Stores common information about hydrogeological measurements. Measurement-specific attributes are stored separately in dedicated tables.

19 attributes / 4 foreign keys / 3 code lists

ERD excerpt for observation. Select to enlarge.

Attributes

Attributes of table observation
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
observation_typeApplication-internal code list defining the type of hydrogeological measurement.integerNO
time_startObservation start timetimestamp with time zoneYES
time_endObservation end timetimestamp with time zoneYES
durationObservation duration timedouble precisionYES
depth_from_mMeasured depth below the borehole reference point at which the interval begins (meter).double precisionYES
depth_to_mMeasured depth below the borehole reference point at which the interval ends (meter).double precisionYES
depth_from_maslMeasured absolute depth at which the interval begins (meter above sea level).double precisionYES
depth_to_maslMeasured absolute depth at which the interval ends (meter above sea level).double precisionYES
commentAdditional descriptive or contextual remarks.textYES
reliabilityReference to the codelist defining the reliability of the observation.integerYES
borehole_idReference to the related borehole record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
casing_idReference to the related casing record.integerYES
is_open_boreholeIndicates whether the borehole is cased. If true , casing_id references the associated casing; if false , the borehole is open.booleanNO
original_vertical_reference_systemReference to the application-internal code list defining the source reference system used for transforming the values to the other reference system.integerNO

Foreign key relationships

Foreign keys of table observation
Attribute NameForeign TableForeign Column
borehole_idboreholeid
creatorusersid
updaterusersid
casing_idcasingid

Code lists

observation_type4 values

Application-internal code list

  • 1: Water ingress
  • 2: Groundwater measurement
  • 3: Hydrotest
  • 4: Field measurements
reliability4 values

Id Label (English)

Values of code list reliability
IdLabel (English)
15203156reliable
15203157uncertain
15203158other
15203159not specified
original_vertical_reference_system2 values

Application-internal code list

  • 1: measured depth
  • 2: meters above sea level

#water_ingress

Stores water ingress measurements associated with an observation.

3 attributes / 1 foreign keys / 2 code lists

Attributes

Attributes of table water_ingress
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
quantityReference to the codelist defining the water ingress quantity.integerNO
conditionsReference to the codelist defining the water ingress conditions.integerYES

Foreign key relationships

Foreign keys of table water_ingress
Attribute NameForeign TableForeign Column
idobservationid

Code lists

quantity5 values

Id Label (English)

Values of code list quantity
IdLabel (English)
15203160small (< 30 l/min)
15203161medium (30 - 120 l/min)
15203162large (> 120 l/min)
15203163other
15203164not specified
conditions5 values

Id Label (English)

Values of code list conditions
IdLabel (English)
15203165free flowing artesian
15203166confined
15203167unconfined
15203168other
15203169not specified

#groundwater_level_measurement

Stores groundwater level measurements associated with an observation.

4 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table groundwater_level_measurement
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
kindReference to the codelist of the methode of groundwater measurement.integerNO
level_mMeasured depth of encountered groundwater table (meter from the borehole reference point).double precisionYES
level_maslMeasured altitude of encountered groundwater table (meter above sea level).double precisionYES

Foreign key relationships

Foreign keys of table groundwater_level_measurement
Attribute NameForeign TableForeign Column
idobservationid

Code lists

kind6 values

Id Label (English)

Values of code list kind
IdLabel (English)
15203203light plummet
15203204pressure probe
15203205pressure gauge
15203206sound
15203207other
15203208not specified

#hydrotest

Reference table linking hydrotest_result and observation. This table exists to support the mapping of the .NET object model to the database schema.

1 attributes / 1 foreign keys

ERD excerpt for hydrotest. Select to enlarge.

Attributes

Attributes of table hydrotest
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO

Foreign key relationships

Foreign keys of table hydrotest
Attribute NameForeign TableForeign Column
idobservationid

#hydrotest_result

Stores the results of a hydrotest. Valid combinations of hydrotest evaluation methods, flow directions, and hydrotest types are enforced in the application frontend and determine which type of parameter can be selected.

10 attributes / 3 foreign keys / 1 code lists

ERD excerpt for hydrotest_result. Select to enlarge.

Attributes

Attributes of table hydrotest_result
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
parameterReference to the codelist defining the type of parameter.integerNO
valueActual measurement value.double precisionYES
value_maxMaximum value of the measurement range.double precisionYES
value_minMinimal value of the measurement range.double precisionYES
hydrotest_idReference to the related hydrotest record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table hydrotest_result
Attribute NameForeign TableForeign Column
hydrotest_idhydrotestid
creatorusersid
updaterusersid

Code lists

parameter10 values

Id Label (English)

Values of code list parameter
IdLabel (English)
15203194kf value (saturated)
15203195kf,u value (unsaturated)
15203196transmissivity
15203197flow dimension
15203198static formation pressure
15203199specific storage coefficient
15203200Lugeon value
15203201relevant thickness
15203202other
15203223not specified

#hydrotest_evaluationmethod_codelist

Association table (n:m) linking hydrotest_result to one or more hydrotest evaluation methods.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table hydrotest_evaluationmethod_codelist
Attribute NameDescriptionData TypeNullable
hydrotest_idReference to the related hydrotest record.integerNO
codelist_idReference to the codelist defining the evaluation methode.integerNO

Foreign key relationships

Foreign keys of table hydrotest_evaluationmethod_codelist
Attribute NameForeign TableForeign Column
hydrotest_idhydrotestid

Code lists

codelist_id5 values

Id Label (English)

Values of code list codelist_id
IdLabel (English)
15203189stationary
15203190transient
15203191numerical
15203192other
15203193not specified

#hydrotest_flowdirection_codelist

Association table (n:m) linking hydrotest_result to one or more flow directions.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table hydrotest_flowdirection_codelist
Attribute NameDescriptionData TypeNullable
hydrotest_idReference to the related hydrotest record.integerNO
codelist_idReference to the codelist defining the flow direction.integerNO

Foreign key relationships

Foreign keys of table hydrotest_flowdirection_codelist
Attribute NameForeign TableForeign Column
hydrotest_idhydrotestid

Code lists

codelist_id3 values

Id Label (English)

Values of code list codelist_id
IdLabel (English)
15203186injection
15203187withdrawal
15203188not specified

#hydrotest_kind_codelist

Association table (n:m) linking hydrotest_result to one or more hydrotest type.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table hydrotest_kind_codelist
Attribute NameDescriptionData TypeNullable
hydrotest_idReference to the related hydrotest record.integerNO
codelist_idReference to a codelist defining the kind of hydrotest.integerNO

Foreign key relationships

Foreign keys of table hydrotest_kind_codelist
Attribute NameForeign TableForeign Column
hydrotest_idhydrotestid

Code lists

codelist_id12 values

Id Label (English)

Values of code list codelist_id
IdLabel (English)
15203170pumping/injection test, constant rate
15203171pumping/injection test, step drawdown test
15203172pumping/injection test, variable rate
15203173pumping/injection test, constant pressure head
15203174abrupt change of pressure head (slug/bail, pulse)
15203175pressure recovery in open borehole/rod/piezometer
15203176pressure recovery in closed interval
15203177packer test (Drillstem, Lugeon)
15203178flowmeter/fluid logging test
15203179infiltration test, unsaturated zone
15203184other
15203185not specified

#field_measurement

Reference table linking fieldmeasurement_result and observation. This table exists to support the mapping of the .NET object model to the database schema.

1 attributes / 1 foreign keys

ERD excerpt for field_measurement. Select to enlarge.

Attributes

Attributes of table field_measurement
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO

Foreign key relationships

Foreign keys of table field_measurement
Attribute NameForeign TableForeign Column
idobservationid

#fieldmeasurement_result

Stores field measurement results.

9 attributes / 3 foreign keys / 2 code lists

ERD excerpt for fieldmeasurement_result. Select to enlarge.

Attributes

Attributes of table fieldmeasurement_result
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
sample_typeReference to the codelist defining the sampling type.integerNO
parameterReference to the codelist defining the measurment parameter.integerNO
valueField measurement value.double precisionNO
fieldmeasurement_idReference to the related field measurement record.integerNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table fieldmeasurement_result
Attribute NameForeign TableForeign Column
fieldmeasurement_idfield_measurementid
creatorusersid
updaterusersid

Code lists

sample_type5 values

Id Label (English)

Values of code list sample_type
IdLabel (English)
15203209pumped
15203210scooped
15203211in the borehole (in situ)
15203212other
15203213not specified
parameter9 values

Id Label (English)

Values of code list parameter
IdLabel (English)
15203214temperature [°C]
15203215pH value
15203216electrical conductivity (ref. 20°C) [µS/cm]
15203217electrical conductivity (ref. 25°C) [µS/cm]
15203218redox potential [mV]
15203219oxygen saturation [%]
15203220dissolved oxygen [mg/L]
15203221other
15203222not specified

Logging

Geophysical logging: runs, the resulting log files, and the tool types used.

3 tables

#log_run

Stores information regarding the log runs.

15 attributes / 3 foreign keys / 2 code lists

ERD excerpt for log_run. Select to enlarge.

Attributes

Attributes of table log_run
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
run_numberSequential number of the logging run.textNO
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO
run_dateDate of the associated log run measurement.dateYES
commentAdditional descriptive or contextual remarks.textYES
service_coName of the service company conducting the measurement.textYES
bit_sizeDiameter of the borehole at the time of the measurement.double precisionYES
conveyance_method_idReference to the codelist defining the conveyance method.integerYES
borehole_status_idReference to the codelist defining the borehole status.integerYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table log_run
Attribute NameForeign TableForeign Column
borehole_idboreholeid
creatorusersid
updaterusersid

Code lists

conveyance_method_id5 values

Id Label (English)

Values of code list conveyance_method_id
IdLabel (English)
100002999WL
100003000LWD
100003001PCL
100003002other
100003003not specified
borehole_status_id5 values

Id Label (English)

Values of code list borehole_status_id
IdLabel (English)
100003004OH
100003005CH
100003006OH & CH
100003007other
100003008not specified

#log_file

Stores information about files containing petrophysical measurements.

14 attributes / 3 foreign keys / 3 code lists

ERD excerpt for log_file. Select to enlarge.

Attributes

Attributes of table log_file
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
log_run_idReference to the related log run record.integerNO
nameIndividual name of the log file.textNO
name_uuidAutomatically created UUID of the log file.textNO
pass_type_idReference to the codelist defining the pass type.integerYES
passSequential number of the acquisition pass within the logging run.integerYES
data_package_idReference to the codelist defining the data package.integerYES
delivery_dateDate of delivery.dateYES
depth_type_idReference to the codelist defining the depth type.integerYES
publicIndicates whether the information is publicly accessible.booleanNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table log_file
Attribute NameForeign TableForeign Column
log_run_idlog_runid
creatorusersid
updaterusersid

Code lists

pass_type_id7 values

Id Label (English)

Values of code list pass_type_id
IdLabel (English)
100003020Main
100003021Repeat
100003022Main & repeat
100003023Downlog
100003024Stationary
100003025other
100003026not specified
data_package_id11 values

Id Label (English)

Values of code list data_package_id
IdLabel (English)
100003009Rush data (WL)
100003010Field data (WL)
100003011Final data (WL)
100003012Real-Time data (LWD)
100003013Memory data (LWD)
100003014Processed data
100003015Interpreted data
100003016Composite
100003017Report
100003018other
100003019not specified
depth_type_id5 values

Id Label (English)

Values of code list depth_type_id
IdLabel (English)
100003027MD
100003028TVD
100003029MD & TVD
100003030other
100003031not specified

#log_file_tool_type_codelist

Association table (n:m) linking log_file to one or more tool type.

2 attributes / 1 foreign keys / 1 code lists

Attributes

Attributes of table log_file_tool_type_codelist
Attribute NameDescriptionData TypeNullable
logfile_idReference to the related log file record.integerNO
codelist_idReference to the codelist defining the tool typesintegerNO

Foreign key relationships

Foreign keys of table log_file_tool_type_codelist
Attribute NameForeign TableForeign Column
logfile_idlog_fileid

Code lists

codelist_id (log_tool_type)26 values · in annex

This codelist contains 26 values. Full values are documented in Annex — log_tool_type.

Profiles, photos and documents

Content attached to a borehole: geological profiles, photographs, and reports and other documents.

3 tables

#profile

Stores geological profiles associated with a borehole.

12 attributes / 3 foreign keys

ERD excerpt for profile. Select to enlarge.

Attributes

Attributes of table profile
Attribute NameDescriptionData TypeNullable
idUnique identifier of the profile.integerNO
borehole_idReference to the related borehole record.integerNO
nameIndividula name of the profile.textNO
name_uuidAutomatically created UUID of the profile.textNO
typeMultipurpose Internet Mail Extensions (MIME) type of the profile (e.g. application/pdf or image/tiff).textNO
descriptionDescription of the profile.textYES
publicIndicates whether the profile is publicly accessible.booleanYES
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES
ocr_statusIndicates whether OCR was successfully appliedintegerNO

Foreign key relationships

Foreign keys of table profile
Attribute NameForeign TableForeign Column
borehole_idboreholeid
creatorusersid
updaterusersid

#photo

Stores information about drill core and cutting photographs.

12 attributes / 3 foreign keys

ERD excerpt for photo. Select to enlarge.

Attributes

Attributes of table photo
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
nameIndividual name of the photo.textNO
name_uuidAutomatically created UUID of the photo.textNO
file_typeFile type of the photo.textNO
depth_fromMeasured depth below the borehole reference point at which the interval begins.double precisionNO
depth_toMeasured depth below the borehole reference point at which the interval ends.double precisionNO
publicIndicates whether the information is publicly accessible.booleanNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table photo
Attribute NameForeign TableForeign Column
borehole_idboreholeid
creatorusersid
updaterusersid

#document

Stores references (URLs) to documents related to the borehole.

9 attributes / 3 foreign keys

ERD excerpt for document. Select to enlarge.

Attributes

Attributes of table document
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
borehole_idReference to the related borehole record.integerNO
urlURL referencing the digital document.textNO
descriptionDescription of the referenced document.textYES
publicIndicates whether the information is publicly accessible.booleanNO
creatorUser who created the record.integerYES
creationDate and time when the record was created.timestamp with time zoneYES
updaterUser who last updated the record.integerYES
updateDate and time of the last update.timestamp with time zoneYES

Foreign key relationships

Foreign keys of table document
Attribute NameForeign TableForeign Column
borehole_idboreholeid
creatorusersid
updaterusersid

Code list infrastructure

The generic table that holds the controlled values referenced throughout the model.

1 table

#codelist

Stores multilingual codelist entries and geological classification codes.

13 attributes

Attributes

Attributes of table codelist
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
geolcodeswisstopo internal geolcode.integerYES
schemaDomain of codelist value.character varyingYES
codeAbbreviation of the value, where applicable.character varyingNO
text_enCodelist value description in English.character varyingNO
text_deCodelist value description in German.character varyingYES
text_frCodelist value description in French.character varyingYES
text_itCodelist value description in Italian.character varyingYES
text_roCodelist value description in Rhaeto-Romanic.character varyingYES
orderInternal index order of codelist values belonging to the same domain resp. schema.integerYES
confColour and/or pattern definition used for visualisation, specified either as an RGB array (e.g. {color:[180;180;180]}) or as the path to an SVG file (e.g. {"image":"15101001.svg"}). Multiple style definitions can be combined using commas.jsonYES
defaultLegacy field retained from previous versions; always set to false.booleanYES
pathHierarchical path within the same domain or schema, represented as a dot-separated list of IDs (e.g. 15300623.15300625.15300304).USER-DEFINEDYES

Users, workgroups and workflow

Application tables governing who may see and edit which data, the publication workflow, and the execution log of automated maintenance tasks.

10 tables

#users

Stores user account information.

10 attributes

ERD excerpt for users. Select to enlarge.

Attributes

Attributes of table users
Attribute NameDescriptionData TypeNullable
idUser identifier.integerNO
createdDate and time when user has been created.timestamp with time zoneYES
adminWhether the user holds administrator privileges.booleanYES
usernameUser name as displayed in the application.character varyingNO
settingsApplication specific configuration information in JSON format.character varyingYES
firstnameUser's first name.character varyingYES
lastnameUser's last name.character varyingYES
disabledIndicates when a user has been disabled.timestamp with time zoneYES
subject_idTechnical identifier issued by the Cognito authentication provider, representing the unique identifier of the user.textNO
emailUser's email adresstextNO

#users_roles

Stores role assignments for users within specific workgroups by linking users, roles, and workgroups.

3 attributes / 3 foreign keys

ERD excerpt for users_roles. Select to enlarge.

Attributes

Attributes of table users_roles
Attribute NameDescriptionData TypeNullable
user_idReference to the related users record.integerNO
role_idReference to the related roles record.integerNO
workgroup_idReference to the related workgroups record.integerNO

Foreign key relationships

Foreign keys of table users_roles
Attribute NameForeign TableForeign Column
user_idusersid
role_idrolesid
workgroup_idworkgroupsid

#roles

Stores the roles that can be assigned to users.

3 attributes

Attributes

Attributes of table roles
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
nameRole namecharacter varyingNO
configTechnical configuration informationjsonYES

#workgroups

Stores information about application internal workgroups.

5 attributes

Attributes

Attributes of table workgroups
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
creationDate and time when the record was created.timestamp with time zoneYES
disabledIndicates when a workgroup has been disabled.timestamp with time zoneYES
nameWorkgroup name.character varyingNO
settingsApplication internal settings and configuration regarding the workgroup.jsonYES

#workflow

Stores informations about the review and publication status of borehole records.

7 attributes / 4 foreign keys / 1 code lists

ERD excerpt for workflow. Select to enlarge.

Attributes

Attributes of table workflow
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
has_requested_changesWhether changes to the borehole record have been requested.booleanNO
statusApplication-internal code list defining the available workflow statuses: draft, review, reviewed, and published.integerNO
borehole_idReference to the related borehole record.integerNO
reviewed_tabs_idReference to the related tab status record indicating the reviewed status.integerNO
published_tabs_idReference to the related tab status record indicating the publication status.integerNO
assignee_idReference to the related users record.integerYES

Foreign key relationships

Foreign keys of table workflow
Attribute NameForeign TableForeign Column
borehole_idboreholeid
reviewed_tabs_idtab_statustab_status_id
published_tabs_idtab_statustab_status_id
assignee_idusersid

Code lists

status4 values
  • 0: draft
  • 1: review
  • 2: reviewed
  • 3: published

#workflow_change

Stores information about the record lifecycle, including status, review process, and approval/publication history.

8 attributes / 3 foreign keys

Attributes

Attributes of table workflow_change
Attribute NameDescriptionData TypeNullable
workflow_change_idIdentifier of the workflow change record.integerNO
commentAdditional comments or contextual remarks.textNO
status_fromPrevious status.integerNO
status_toNew assigned status.integerNO
workflow_idReference to the related workflow record.integerNO
created_by_idReference to the related users record.integerYES
created_atDate and time when workflow has been changed.timestamp with time zoneYES
assignee_idReference to the related users record.integerYES

Foreign key relationships

Foreign keys of table workflow_change
Attribute NameForeign TableForeign Column
workflow_idworkflowid
created_by_idusersid
assignee_idusersid

#tab_status

Stores information about the borehole processing workflow related to review and approval/publication status.

20 attributes

Attributes

Attributes of table tab_status
Attribute NameDescriptionData TypeNullable
tab_status_idIdentifier of tab status record.integerNO
locationIndicates the status of the location tab.booleanNO
identifiersIndicates the status of the identifier tab.booleanNO
generalIndicates the status of the general subtab of the borehole tab.booleanNO
sectionIndicates the status of the section subtab of the borehole tab.booleanNO
geometryIndicates the status of the borehole geometry subtab of the borehole tab.booleanNO
lithologyIndicates the status of the lithology subtab of the stratigraphy tab.booleanNO
lithostratigraphyIndicates the status of the lithostratigraphy subtab of the stratigraphy tab.booleanNO
chronostratigraphyIndicates the status of the chronostratigraphy subtab of the stratigraphy tab.booleanNO
casingIndicates the status of the casing subtab of the borehole architecture tab.booleanNO
instrumentationIndicates the status of the instrumentation subtab of the borehole architecture tab.booleanNO
backfillIndicates the status of the sealing/backfilling subtab of the borehole architecture tab.booleanNO
water_ingressIndicates the status of the water ingress subtab of the hydrogeology tab.booleanNO
groundwaterIndicates the status of the groundwater measurement subtab of the hydrogeology tab.booleanNO
field_measurementIndicates the status of the field measurement subtab of the hydrogeology tab.booleanNO
hydrotestIndicates the status of the hydrotest subtab of the hydrogeology tab.booleanNO
logIndicates the status of the log runs and log files.booleanNO
profileIndicates the status of the profile subtab of the attachments tab.booleanNO
photoIndicates the status of the photo subtab of the attachments tab.booleanNO
documentIndicates the status of the document subtab of the attachments tab.booleanNO

#terms

Stores custom terms used by the application.

9 attributes

Attributes

Attributes of table terms
Attribute NameDescriptionData TypeNullable
idUnique identifier of the record.integerNO
draftWhether the terms are in draft status.booleanNO
text_enCustom terms in English.character varyingNO
text_deCustom terms in German.character varyingYES
text_frCustom terms in French.character varyingYES
text_itCustom terms in Italian.character varyingYES
text_roCustom terms in Rhaeto-Romanic.character varyingYES
creationDate and time when the record was created.timestamp with time zoneNO
expiredDate and time of expiration of legal termstimestamp with time zoneYES

#terms_accepted

Stores information about the acceptance of the legal terms by individual users.

3 attributes / 2 foreign keys

Attributes

Attributes of table terms_accepted
Attribute NameDescriptionData TypeNullable
user_idReference to the related users record.integerNO
term_idReference to the related terms record.integerNO
acceptedDate and time of acceptance of legal termstimestamp with time zoneYES

Foreign key relationships

Foreign keys of table terms_accepted
Attribute NameForeign TableForeign Column
user_idusersid
term_idtermsid

#maintenance_task_log

Stores execution logs of automated maintenance tasks.

11 attributes / 1 foreign keys

Attributes

Attributes of table maintenance_task_log
Attribute NameDescriptionData TypeNullable
idUnique identifier of the maintenance task execution.integerNO
task_typeType of maintenance task.integerNO
statusExecution status of the maintenance task.integerNO
affected_countNumber of records affected by the maintenance task.integerYES
messageStores the error message if the task fails.textYES
parametersJSON object containing task execution parameters.jsonbYES
is_dry_runIndicates whether the task was executed as a simulation only.booleanNO
only_missingIndicates whether maintenance task was limited to missing records.booleanNO
started_by_idUser who started the maintenance task.integerYES
started_atDate and time when execution started.timestamp with time zoneNO
completed_atDate and time when execution completed.timestamp with time zoneNO

Foreign key relationships

Foreign keys of table maintenance_task_log
Attribute NameForeign TableForeign Column
started_by_idusersid

Annex — code lists

Code lists with many values, referenced from the attribute descriptions above. Each list can be filtered.

#drilling_purpose24 values

Referenced by borehole.purpose_id

Values of code list drilling_purpose
IdCodeLabel (English)
30000003CCSExpCCS exploration
30000004CCSInjCCS injection
30000005CCSProCCS production
22103003belScontaminated sites
30000002DHEdownhole heat exchanger
22103001Gtecgeotechnics
22103002GtheExpgeothermal exploration
30000000GtheInjgeothermal injection
30000001GtheProgeothermal production
30000007Gwgroundwater
30000009Hothotspring
22103007HCExphydrocarbon exploration
30000010HCInjhydrocarbon injection
30000011HCProhydrocarbon production
22103004Hydhydrology
22103006Rohmineral resources
22103005Minmineral water
22103008Natnatural hazards
22103011kAnot specified
22103010aother
30000008Pwpotable water
22103009Fresearch
30000012SciExpscientific exploration
30000006TunExptunnel exploration

#lithostratigraphy

Referenced by borehole.lithostratigraphy_top_bedrock_id, lithostratigraphy.lithostratigraphy_id

The list of lithostratigraphy concepts is part of https://lexic.swissgeol.ch/

#chronostratigraphy

Referenced by borehole.chronostratigraphy_top_bedrock_id, chronostratigraphy.chronostratigraphy_id

The list of chronostratigraphy concepts is part of https://lexic.swissgeol.ch/

#facies_con154 values

Referenced by facies_description.facies_id

Values of code list facies_con
IdCodeLabel (English)
100001168aeolian
100001176aeolian dune field margins
100001169aeolian dunes
100001170aeolian dunes, barchan
100001171aeolian dunes, ridge
100001173aeolian dunes, slipface
100001172aeolian dunes, toe
100001177aeolian fans
100001175aeolian flat
100001174aeolian interdune
100001178aeolian sheet sands
100001144alluvial
100001154alluvial braidplain
100001149alluvial channel
100001153alluvial channel, anastomosed
100001150alluvial channel, braided
100001152alluvial channel, multi-storey meandering
100001151alluvial channel, single-storey meandering
100001145alluvial fan
100001147alluvial fan, arid
100001148alluvial fan, delta
100001146alluvial fan, humid
100001155alluvial floodplain
100001156alluvial floodplain, crevasse-splays
100001158alluvial floodplain, fines
100001157alluvial floodplain, paleosol
100001279deep marine
100001294deep marine, autochthonous
100001285deep marine, channel/levee complex
100001287deep marine, fan
100001288deep marine, fan basin floor
100001291deep marine, fan debris flow
100001292deep marine, fan debris slump
100001290deep marine, fan slope
100001289deep marine, fan toe of slope
100001281deep marine, hemipelagic
100001280deep marine, pelagic
100001293deep marine, slump
100001286deep marine, submarine canyon
100001283deep marine, thick-bedded turbidite
100001284deep marine, thin-bedded turbidite
100001282deep marine, turbidite
100001189delta
100001190deltaic river-dominated
100001201deltaic river-dominated, abandoned distributary channel
100001200deltaic river-dominated, active distributary channel
100001195deltaic river-dominated, delta front
100001205deltaic river-dominated, delta plain
100001194deltaic river-dominated, distal prodelta
100001199deltaic river-dominated, distributary channel
100001202deltaic river-dominated, interdistributary bay
100001204deltaic river-dominated, interdistributary bay, crevasse splay
100001203deltaic river-dominated, interdistributary bay, fines
100001198deltaic river-dominated, lower mouth-bar
100001196deltaic river-dominated, mouth-bar
100001191deltaic river-dominated, offshore
100001192deltaic river-dominated, prodelta
100001193deltaic river-dominated, proximal prodelta
100001197deltaic river-dominated, upper mouth-bar
100001227deltaic shelf edge
100001218deltaic tide-dominated
100001221deltaic tide-dominated, delta front
100001219deltaic tide-dominated, offshore
100001220deltaic tide-dominated, prodelta
100001226deltaic tide-dominated, salt marsh
100001225deltaic tide-dominated, supratidal flats
100001224deltaic tide-dominated, tidal channel
100001223deltaic tide-dominated, tidal flat
100001222deltaic tide-dominated, tidal ridge
100001206deltaic wave-dominated
100001212deltaic wave-dominated, backshore/dunes
100001213deltaic wave-dominated, barrier
100001211deltaic wave-dominated, beach/foreshore
100001217deltaic wave-dominated, coastal plain
100001214deltaic wave-dominated, lagoon
100001215deltaic wave-dominated, lagoon, fines
100001216deltaic wave-dominated, lagoon, washover
100001208deltaic wave-dominated, lower shoreface
100001209deltaic wave-dominated, middle shoreface
100001207deltaic wave-dominated, offshore
100001210deltaic wave-dominated, upper shoreface
100001165ephemeral-lacustrine
100001166ephemeral-lacustrine, fines
100001167ephemeral-lacustrine, sheet
100001179fluvial-aeolian
100001181fluvial-aeolian, distributary channel
100001185fluvial-aeolian, dune field margins
100001186fluvial-aeolian, fans
100001182fluvial-aeolian, fines
100001184fluvial-aeolian, flat
100001183fluvial-aeolian, interdune
100001180fluvial-aeolian, sheet
100001187fluvial-aeolian, sheet sands
100001188fluvio-glacial
100001160fluvio-lacustrine
100001163fluvio-lacustrine, distributary channel
100001162fluvio-lacustrine, mouth-bar
100001161fluvio-lacustrine, sheet
100001164fluvio-lacustrine, turbidite
100001159lacustrine
100001251marginal marine
100001253marginal marine, estuary
100001255marginal marine, estuary, bay-head delta
100001256marginal marine, estuary, central basin
100001254marginal marine, estuary, fluvial
100001257marginal marine, estuary, sand plug
100001258marginal marine, estuary, tidal
100001259marginal marine, incised valley fill
100001252marginal marine, lagoon
100001231marine
100001232marine platform
100001239marine platform, bank
100001240marine platform, basin
100001236marine platform, inner shelf
100001237marine platform, outer shelf
100001235marine platform, ramp
100001233marine platform, rimmed
100001238marine platform, shelf
100001234marine platform, unrimmed
100001243marine, back reef
100001247marine, fore reef
100001250marine, lower slope
100001241marine, peritidal
100001245marine, reef crest
100001244marine, reef flat
100001246marine, reef front
100001242marine, reefs/mounds
100001248marine, slope
100001249marine, upper slope
100001296not specified
100001295other
100001229playa
100001228sabka
100001230salina
100001260shallow marine
100001272shallow marine, barrier
100001274shallow marine, flood/ebb tidal delta
100001271shallow marine, foreshore/beach
100001276shallow marine, lag deposit
100001266shallow marine, lower shoreface
100001268shallow marine, lower shoreface, gradationally based
100001267shallow marine, lower shoreface, sharp-based
100001269shallow marine, middle shoreface
100001261shallow marine, offshore
100001263shallow marine, offshore, inner shelf
100001262shallow marine, offshore, outer shelf
100001264shallow marine, offshore, tidal shelf ridge
100001278shallow marine, regressive lag deposit
100001265shallow marine, shoreface
100001275shallow marine, tidal channel
100001273shallow marine, tidal inlet
100001277shallow marine, transgressive lag deposit
100001270shallow marine, upper shoreface
100001143terrestrial

#color91 values

Referenced by lithology_description.color_primary_id, lithology_description.color_secondary_id

Values of code list color
IdCodeLabel (English)
100000091beige
100000080beige grey
100000131beige yellow
100000074black
100000106blackish brown
100000075blackish grey
100000147blue
100000142bluish green
100000085bluish grey
100000118bluish red
100000104brown
100000081brownish grey
100000123brownish orange
100000116brownish red
100000133brownish yellow
100000090dark beige
100000146dark blue
100000103dark brown
100000136dark green
100000076dark grey
100000156dark magenta
100000099dark ochre
100000143dark olive
100000120dark orange
100000159dark pink
100000113dark red
100000151dark violet
100000127dark yellow
100000137green
100000097greenish beige
100000150greenish blue
100000111greenish brown
100000084greenish grey
100000155greenish violet
100000077grey
100000093greyish beige
100000149greyish blue
100000107greyish brown
100000139greyish green
100000162greyish pink
100000154greyish violet
100000130greyish yellow
100000092light beige
100000148light blue
100000105light brown
100000138light green
100000078light grey
100000158light magenta
100000101light ochre
100000145light olive
100000122light orange
100000161light pink
100000115light red
100000153light violet
100000129light yellow
100000157magenta
100000164not specified
100000100ochre
100000094ochre beige
100000108ochre brown
100000132ochre yellow
100000144olive
100000112olive brown
100000141olive green
100000135olive yellow
100000121orange
100000095orange beige
100000163other
100000160pink
100000098pinkish beige
100000086pinkish grey
100000126pinkish orange
100000119pinkish red
100000089pinkish white
100000114red
100000109reddish brown
100000082reddish grey
100000102reddish ochre
100000124reddish orange
100000134reddish yellow
100000152violet
100000087white
100000079whitish grey
100000128yellow
100000096yellowish beige
100000110yellowish brown
100000140yellowish green
100000083yellowish grey
100000125yellowish orange
100000117yellowish red
100000088yellowish white

#lithology_uncon_main24 values

Referenced by lithology_description.lithology_uncon_main_id

Values of code list lithology_uncon_main
IdCodeLabel (English)
100000032Ananthropogenic soil
100000033Babackfill
100000013Boboulder
100000028Clclay
100000016CGrcoarse gravel
100000022CSacoarse sand
100000014Cocobbles
100000020FGrfine gravel
100000026FSafine sand
100000019FMGrfine-medium gravel
100000025FMSafine-medium sand
100000015Grgravel
100000031Huhumus
100000012LBolarge boulder
100000018MGrmedium gravel
100000024MSamedium sand
100000017MCGrmedium-coarse gravel
100000023MCSamedium-coarse sand
100000035nsnot specified
100000030Ororganic soil
100000034othother
100000029Ptpeat
100000021Sasand
100000027Sisilt

#lithology_con

Referenced by lithology_description.lithology_con_id

The list of lithology concepts for consolidated rocks is part of https://lexic.swissgeol.ch/

#component_con_mineral111 values

Referenced by lithology_description_component_con_mineral_codelist.component_con_mineral_id

Values of code list component_con_mineral
IdCodeLabel (English)
100000245actinolite
100000246adularia
100000247albite
100000248almandine
100000249amphibole
100000250andalusite
100000251andesine
100000252anhydrite
100000253ankerite
100000254anorthite
100000255anorthoclase
100000256anthracite
100000257antigorite
100000258apatite
100000259aragonite
100000260arsenopyrite
100000261asbestos
100000262augite
100000263baryte
100000264bauxite
100000265biotite
100000266calcite
100000267cassiterite
100000268celestine
100000269chalcopyrite
100000270chlorite
100000271chloritoid
100000272chromite
100000273chrysotile
100000274coesite
100000275copper
100000276cordierite
100000277corundum
100000278diaspore
100000279diopside
100000280dolomite
100000281enstatite
100000282epidote
100000283feldspar
100000284fluorite
100000285forsterite
100000286fuchsite
100000287galena
100000288garnet
100000289gibbsite
100000290glauconite
100000291glaucophane
100000292goethite
100000293gold
100000294graphite
100000295grossular
100000296gypsum
100000297halite
100000298hematite
100000299hornblende
100000300illite
100000301ilmenite
100000302jadeite
100000303kaolinite
100000304K-feldspar
100000305kyanite
100000306leucite
100000307lignite
100000308limonite
100000309magnesite
100000310magnetite
100000311mica
100000312microcline
100000313monazite
100000314montmorillonite
100000315muscovite
100000316nepheline
100000355not specified
100000317oligoclase
100000318olivine
100000319omphacite
100000320orthoclase
100000354other
100000321phengite
100000322phlogopite
100000323plagioclase
100000324prehnite
100000325pyrite
100000326pyrope
100000327pyrophyllite
100000328pyroxene
100000329quartz
100000330rutile
100000331sapphirine
100000332scapolite
100000333sericite
100000334serpentine
100000335siderite
100000336sillimanite
100000337silver
100000338smectite
100000339spessartite
100000340sphalerite
100000341spinel
100000342staurolite
100000343stilpnomelane
100000344sulfur
100000345talc
100000346titanite
100000347tourmaline
100000348tremolite
100000349vermiculite
100000350wollastonite
100000351zeolite
100000352zircon
100000353zoisite

#component_con_particle66 values

Referenced by lithology_description_component_con_particle_codelist.component_con_particle_id

Values of code list component_con_particle
IdCodeLabel (English)
100000179algae
100000180algal mats
100000181ammonites
100000182aptychi
100000215ash
100000183belemnites
100000184bioclasts
100000185biodetritus
100000216bitumen
100000186bivalves
100000187brachiopods
100000188bryozoans
100000217calcareous concretion
100000218calcareous oncoids
100000219calcareous ooids
100000220calcareous pisoids
100000189calpionellids
100000190cephalopods
100000221chert
100000222coal fragments
100000191coccoliths
100000223concretion
100000192corals
100000193crinoids
100000224crystals
100000194diatoms
100000195dinoflagellates
100000196echinoderms
100000197echinoids
100000198fish remains
100000199foraminifera
100000200fossils
100000201gastropods
100000202gryphaea
100000225iron ooids
100000226iron pisoids
100000227lapilli
100000228lithoclasts
100000203molluscs
100000204nautilids
100000244not specified
100000205nummulites
100000229oncoids
100000230ooids
100000231organic matter
100000206ostracods
100000243other
100000207oysters
100000232pellets
100000233pisoids
100000234plant remains
100000235plant root tubes
100000236pollen
100000237pyroclast
100000208radiolarians
100000238rootlets
100000209rudists
100000239sideritic concretion
100000240silicified wood
100000210Spicules
100000211sponges
100000241spores
100000212stromatolites
100000213tintinnids
100000214vertebrates
100000242wood fragments

#structure_post_gen43 values

Referenced by lithology_description_structure_post_gen_codelist.structure_post_gen_id

Values of code list structure_post_gen
IdCodeLabel (English)
100000457anhydrite nodule layers (chicken-wire)
100000455anhydrite vein
100000423birdseye structure
100000452blastomylonitic
100000449boudinage
100000460brecciated
100000430caliche
100000447cataclastic
100000458collapse breccia
100000462cone-in-cone
100000434crystal ghosts
100000445displaced
100000440faulted
100000424fenestral structure
100000456fibrous gypsum
100000450folded
100000435fossil ghosts
100000441fractured
100000444glided
100000454gypsum vein
100000431hardground
100000463horse-tailing
100000439jointed
100000429karst, completely filled
100000427karst, empty
100000428karst, partially filled
100000425keystone vugs
100000451mylonitic
100000433neomorphism
100000465not specified
100000436ooid ghosts
100000464other
100000437pressure solution seams
100000432pseudomorphosis
100000443pull-apart structure
100000461rauhwacke
100000448sheared
100000442slickensides
100000459solution breccia
100000438stylolites
100000446subsided
100000453vein
100000426vugs

#structure_syn_gen60 values

Referenced by lithology_description_structure_syn_gen_codelist.structure_syn_gen_id

Values of code list structure_syn_gen
IdCodeLabel (English)
100000392adhesion ripples
100000393asymmetrical ripples
100000366bedded
100000417bioturbated
100000420bored surface
100000419boring
100000418burrows
100000407clay drape
100000403convolute bedding
100000382crinkled
100000386cross-bedding
100000399dish structure
100000405drag fold (sedimentary)
100000406dyke (sedimentary)
100000388festoon cross-bedding
100000398flame structure
100000379flaser bedding
100000408flute casts
100000416geopetal fabric
100000383graded bedding
100000410groove casts
100000397hummocky cross-stratification
100000385inverse graded bedding
100000371laminated (< 1 cm)
100000380lenticular bedding
100000400load casts
100000373medium bedded (10 – 100 cm)
100000368moderatley bedded
100000412mudcracks
100000364nodular
100000376non-parallel bedding
100000384normal graded bedding
100000422not specified
100000421other
100000401overturning bedding
100000375parallel bedding
100000415pebble imbrication
100000381pinch-and-swell bedding
100000390planar cross-bedding
100000394planar/parallel ripples
100000411prod casts/bounce casts
100000402ptygmatic fold
100000396ripple-drift, climbing ripples
100000391ripples
100000367slightly bedded
100000404slump/contorted bedding
100000409striation casts
100000363structureless
100000395symmetrical ripples
100000413syneresis cracks
100000389tabular cross-bedding
100000414tepee structure
100000374thick bedded (>100 cm)
100000372thin bedded (1 – 10 cm)
100000387trough cross-bedding
100000365varves
100000370very well bedded
100000378wavy bedding (irregular)
100000377wavy bedding (parallel)
100000369well bedded

#uscs_type29 values

Referenced by lithology_uscs_type_codelist.uscs_type_id

Values of code list uscs_type
IdCodeLabel (English)
23101006GCclayey gravel (GC)
23101020SCclayey sand (SC)
23101004CL-MLclayey silt (CL-ML)
23101035MHelastic silt (MH)
23101001CHfat clay (CH)
23101002CMlean clay (CM)
23101034kAnot specified
23101017OLorganic clay (OL)
23101016OHorganic silt (OH)
100000496Oother
23101018Ptpeat (Pt)
23101009GPpoorly graded gravel (GP)
23101010GP-GCpoorly graded gravel with clay (GP-GC)
23101011GP-GMpoorly graded gravel with silt (GP-GM)
23101023SPpoorly graded sand (SP)
23101024SP-SCpoorly graded sand with clay (SP-SC)
23101025SP-SMpoorly graded sand with silt (SP-SM)
23101015MLsilt (ML)
23101003CLsilty clay (CL)
23101008GMsilty gravel (GM)
23101022SMsilty sand (SM)
23101021SC-SMsilty, calyey sand (SC-SM)
23101007GC-GMsilty, clayey gravel (GC-GM)
23101012GWwell-graded gravel (GW)
23101013GW-GCwell-graded gravel with clay (GW-GC)
23101014GW-GMwell-graded gravel with silt (GW-GM)
23101029SWwell-graded sand (SW)
23101030SW-SCwell-graded sand with clay (SW-SC)
23101031SW-SMwell-graded sand with silt (SW-SM)

#log_tool_type26 values

Referenced by log_file_tool_type_codelist.codelist_id

Values of code list log_tool_type
IdCodeLabel (English)
100003048ABIAcoustic Borehole Imager
100003032CALCaliper
100003052CBLCement Bond Log
100003037RHOBDensity
100003044DIEDielectric
100003045ECSElemental Capture Spectroscopy
100003034GRGamma Ray
100003033GYROGyroscope and inclinometer
100003043MRESMicroresistivity
100003039NPHINeutron Porosity
100003056UNSPECnot specified
100003046NMRNuclear Magnetic Resonance
100003049OBIOptical Borehole Imager
100003055OTHERother
100003038PEFPhotoelectric Factor
100003051PLTProduction logging tools
100003054PNLPulsed neutron logging tools
100003042RESResistivity (Laterolog / Induction / Array)
100003047RBIResistivity Borehole Imager
100003040SIGMASigma (Thermal Neutron Capture Cross-Section)
100003036DTSonic (monopole & dipole)
100003035SGRSpectral Gamma Ray
100003041SPSpontaneous Potential
100003050TEMPTemperature
100003053USIT / USIUltrasonic Cement and Casing Imager
100003057VSPVertical seismic profile

#drilling_mud_type23 values

Referenced by section_element.mud_type_id, section_element.mud_subtype_id

Values of code list drilling_mud_type
IdCodeLabel (English)
22109004air
22109002all oil
22109009bentonite, polymers
22109019diesel
22109018dispersed oil
22109007foam
22109005gas
22109017invert emulsion
22109011K-silicate, Na-silicate, polymer
22109013lignite, lignosulfonate, bentonite, polymers, phosphate
22109014lime, gypsum, NaCl, CaCl2, lignite, lignosulfonate, bentonite, polymers
22109016low toxicity
22109006mist
22109010NaCl, KCl, bentonite, polymer
22109021non-aqueous
22109023not specified
22109015oil-based
22109022other
22109003pneumatic
22109020synthetic
22109001water
22109012water-based dispersed
22109008water-based non-dispersed

About this document

This specification is published by the Federal Office of Topography swisstopo under CC BY 4.0. It describes the database schema of boreholes.swissgeol.ch at application version 2.1.1748; because not every release changes the schema, the version given here identifies the application state the description was taken from.

The permanent identifier of this document is https://doi.org/10.60695/swisstopo.boreholes.datamodel.2026; it resolves to the current published version. HTML is the only published format.

Questions, corrections and reuse enquiries: swissgeol@swisstopo.ch.

Revision history

Revision history
VersionDateChanges
2.1.174818 August 2026 First public release.

Accessing the data

General information about the swissgeol platform and its applications is available at swissgeol.ch. The schema described here is shared by several instances of the application serving different audiences: public, internal, external, integration and development.

Access restrictions on an individual borehole are expressed through restriction_id and restriction_until in borehole; workgroup_id links a record to the workgroup that maintains it. The attribute borehole.public is a legacy field and is always NULL.

↑ Top