Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| material_id | INT | 10 | √ | null |
|
|
PK autoincrementing unique identifier for materials |
|||||||||||||
| parent_material_id | INT | 10 | √ | NULL |
|
|
FK self referencing to record when a material is a subset of another e.g. Wickow Granite is a subset of Leinster Granite |
|||||||||||||
| common_name | VARCHAR | 250 | null |
|
|
The common name for the material e.g. Connemara marble |
||||||||||||||
| is_public | TINYINT | 3 | 1 |
|
|
Whether or not the material is public (will appear on website) |
||||||||||||||
| alternative_names | VARCHAR | 250 | √ | NULL |
|
|
Alternative name(s) for materials. |
|||||||||||||
| material_type_id | INT | 10 | √ | NULL |
|
|
FK. Link to dic_material_type |
|||||||||||||
| material_name_verbatim | VARCHAR | 100 | √ | NULL |
|
|
Specific rock type or mineral name |
|||||||||||||
| colour | VARCHAR | 100 | √ | NULL |
|
|
Colour or colour range of the stone |
|||||||||||||
| colour_variation | VARCHAR | 250 | √ | NULL |
|
|
Variation of colour |
|||||||||||||
| grain_crystal_size_id | INT | 10 | √ | NULL |
|
|
FK. Link to dic_grain_crystal_size |
|||||||||||||
| context_of_use | TEXT | 65535 | √ | NULL |
|
|
Where the material is usually used. |
|||||||||||||
| material_desc | TEXT | 65535 | √ | NULL |
|
|
General description, discussion of the material. Public formatted version which appears on the website. |
|||||||||||||
| notes | TEXT | 65535 | √ | NULL |
|
|
Notes, not public for internal use only |
|||||||||||||
| age_ics_id | INT | 10 | √ | NULL |
|
|
FK. Id of the international commission on stratigraphy age name |
|||||||||||||
| age_verbatim | VARCHAR | 250 | √ | NULL |
|
|
Geological age verbatim e.g. local age name |
|||||||||||||
| geol_group | VARCHAR | 250 | √ | NULL |
|
|
Geological group name |
|||||||||||||
| geol_formation | VARCHAR | 250 | √ | NULL |
|
|
Geological formation name |
|||||||||||||
| geol_member | VARCHAR | 250 | √ | NULL |
|
|
Geological member name |
|||||||||||||
| geol_strat_verbatim | VARCHAR | 500 | √ | NULL |
|
|
Lithostratigraphy, originally as reported on google sheets |
|||||||||||||
| lithostrat_id | INT | 10 | √ | NULL |
|
|
Link to dictionary of lithostratigraphy from GSI |
|||||||||||||
| bgs_strat_code | VARCHAR | 255 | √ | NULL |
|
|
Code from the British Geological Survey Lexicon of named stratigraphic units https://www.bgs.ac.uk/technologies/the-bgs-lexicon-of-named-rock-units/ |
|||||||||||||
| strat_notes | VARCHAR | 1000 | √ | NULL |
|
|
Notes about the stratigraphy |
|||||||||||||
| country_of_origin | VARCHAR | 100 | √ | NULL |
|
|
Country material originates from |
|||||||||||||
| county_id | INT | 10 | √ | NULL |
|
|
Link to dic_county for county of origin |
|||||||||||||
| is_in_eurlithos | TINYINT | 3 | √ | NULL |
|
|
Presence or absence in Eurlithos database (EN 12440) |
|||||||||||||
| proposed_eurolithos | TINYINT | 3 | √ | NULL |
|
|
Whether this material should be submitted to Eurolithos |
|||||||||||||
| nsdni_url | VARCHAR | 3000 | √ | NULL |
|
|
URL for Northern Irish Natural Stone Database (stonedatabase.com) |
|||||||||||||
| bsds_id | INT | 10 | √ | NULL |
|
|
ID for Scottish Building Stone Database. Find the ID for stones in the URL. Quarry ID is visible in tables. |
|||||||||||||
| gsi_code | VARCHAR | 100 | √ | NULL |
|
|
Geological Heritage Code |
|||||||||||||
| documentary_sources_verbatim | TEXT | 65535 | √ | NULL |
|
|
||||||||||||||
| entered_by | VARCHAR | 250 | √ | NULL |
|
|
Data orginally entered by |
|||||||||||||
| entered_date | DATETIME | 19 | √ | NULL |
|
|
Date of original entry |
|||||||||||||
| modified_by | VARCHAR | 250 | √ | NULL |
|
|
Person who made the latest modification |
|||||||||||||
| modified_date | DATETIME | 19 | √ | NULL |
|
|
Date of latest modification |
|||||||||||||
| material_tag | VARCHAR | 500 | √ | NULL |
|
|
Autogenerated Tag for materials, used to link to references and photos. Created by taking the common name and removing all special characters/punctuation, replacing spaces with underscores. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| material_s_pk | Primary key | Asc | material_id |
| common_name | Performance | Asc | common_name |
| county_id | Performance | Asc | county_id |
| grain_crystal_size_id | Performance | Asc | grain_crystal_size_id |
| material_ibfk_6 | Performance | Asc | age_ics_id |
| material_type_id | Performance | Asc | material_type_id |
| parent_material_id | Performance | Asc | parent_material_id |
| PRIMARY | Must be unique | Asc | material_id |
| strat_objectid | Performance | Asc | lithostrat_id |

