Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int8 | 19 | √ | null | 
                                         | 
                                    
                                         | 
                                    |||||
| batch_id | int8 | 19 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| file_id | int8 | 19 | √ | null | 
                                         | 
                                    
                                        
  | 
                                    File ID if the photo exists. Null if the photo has been deleted.  | 
                                ||||
| created_by | int8 | 19 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| created_time | timestamptz | 35,6 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| deleted_by | int8 | 19 | √ | null | 
                                         | 
                                    
                                        
  | 
                                    |||||
| deleted_time | timestamptz | 35,6 | √ | null | 
                                         | 
                                    
                                         | 
                                    
Indexes
| Constraint Name | Type | Sort | Column(s) | 
|---|---|---|---|
| batch_photos_pkey | Primary key | Asc | id | 
| batch_photos_batch_id_idx | Performance | Asc | batch_id | 
| batch_photos_file_id_key | Must be unique | Asc | file_id |