batch_photos

0 rows


Description

Information about photos of batches.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int8 19 null
batch_id int8 19 null
batches.id batch_photos_batch_id_fkeyR
file_id int8 19 null
files.id batch_photos_file_id_fkeyN

File ID if the photo exists. Null if the photo has been deleted.

created_by int8 19 null
users.id batch_photos_created_by_fkeyR
created_time timestamptz 35,6 null
deleted_by int8 19 null
users.id batch_photos_deleted_by_fkeyR
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

Relationships