Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int8 | 19 | √ | null |
|
|
|||||
| agent_type | varchar | 50 | null |
|
|
||||||
| label | varchar | 255 | √ | null |
|
|
|||||
| description | text | 2147483647 | √ | null |
|
|
|||||
| individual_id | int4 | 10 | √ | null |
|
|
|||||
| institution_id | int4 | 10 | √ | null |
|
|
|||||
| agent_role_type_id | int4 | 10 | null |
|
|
||||||
| sample_id | int4 | 10 | null |
|
|
||||||
| team_id | int8 | 19 | √ | null |
|
|
|||||
| position | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| related_sample_agent_pkey | Primary key | Asc | id |
| related_sample_agent_individual_id_520a1e66 | Performance | Asc | individual_id |
| related_sample_agent_institution_id_ba1b6ea6 | Performance | Asc | institution_id |
| related_sample_agent_relation_type_id_85b0f95b | Performance | Asc | agent_role_type_id |
| related_sample_agent_sample_id_33fc6df5 | Performance | Asc | sample_id |
| related_sample_agent_team_id_9893b510 | Performance | Asc | team_id |
| unique_related_sample_agent_role_position | Must be unique | Asc/Asc/Asc | sample_id + agent_role_type_id + position |
| unique_relations | Must be unique | Asc/Asc/Asc/Asc/Asc | sample_id + agent_role_type_id + individual_id + institution_id + team_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| related_sample_agent_position_check | ("position" >= 0) |

