Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| basin_id | serial | 10 | √ | nextval('basin_basin_id_seq'::regclass) | 
                                        
  | 
                                    
                                         | 
                                    PK. Unique ID for a basin. Generated by the database.  | 
                                |||
| basin_type_id | int4 | 10 | √ | null | 
                                         | 
                                    
                                        
  | 
                                    FK. ID for the basin type. Links to dic_basin_type table.  | 
                                |||
| basin_name | varchar | 100 | √ | null | 
                                         | 
                                    
                                         | 
                                    Name for the basin eg. McArthur Basin  | 
                                |||
| basin_notes | varchar | 4000 | √ | null | 
                                         | 
                                    
                                         | 
                                    Notes about the basin  | 
                                |||
| timestamp_created | timestamptz | 35,6 | now() | 
                                         | 
                                    
                                         | 
                                    |||||
| timestamp_modified | timestamptz | 35,6 | √ | now() | 
                                         | 
                                    
                                         | 
                                    
Indexes
| Constraint Name | Type | Sort | Column(s) | 
|---|---|---|---|
| basin_id | Primary key | Asc | basin_id | 
| basin_basin_name_idx | Performance | Asc | basin_name | 
| basin_basin_type_id_idx | Performance | Asc | basin_type_id | 
| basin_name_lower_idx | Performance | 

