Sites
The sites table stores information about the physical locations where experiments are conducted.
Table Schema
| Column Name | Data Type | Description |
|---|---|---|
id |
UUID |
Primary Key. A unique identifier for the site. |
site_name |
String(255) |
The name of the site. |
site_city |
String(255) |
The city where the site is located. |
site_state |
String(255) |
The state where the site is located. |
site_country |
String(255) |
The country where the site is located. |
site_info |
JSONB |
A JSONB column for storing additional, unstructured information about the site. |
created_at |
TIMESTAMP |
The timestamp when the record was created. Defaults to the current time. |
updated_at |
TIMESTAMP |
The timestamp when the record was last updated. Automatically updates on any modification. |
Constraints and Indexes
- Unique Constraint: A
UniqueConstraintonsite_name,site_city,site_state, andsite_countryensures that each site is unique. - GIN Index: A GIN index named
idx_sites_infois applied to thesite_infocolumn to optimize queries on the JSONB data.
Relationships
- Association Tables: The
sitestable is linked toexperimentsthrough theexperiment_sitesassociation table.