Add member profile photo to planning docs

profile_image_file_id on member table, entity_type=member category=profile
in file storage. UI shows silhouette placeholder when empty.
This commit is contained in:
Ryan Moon
2026-03-28 15:34:57 -05:00
parent 760e995ae3
commit 6adce51e6c
2 changed files with 12 additions and 0 deletions

View File

@@ -213,6 +213,12 @@ varchar
Auto-generated 6-digit random number, unique per company. Human-readable member ID.
profile_image_file_id
uuid FK
Nullable — references file.id. Profile photo for the member. Uploaded via the file storage API with entity_type = member, category = profile.
first_name
varchar

View File

@@ -220,6 +220,7 @@ Steps:
## 8.1 Which Domains Use File Storage
Domain | Entity Type | Categories | Typical Files
Members | member | profile | Profile photo (1 per member). UI shows silhouette placeholder when empty.
Member Identifiers | member_identifier | front, back | DL/passport/school ID photos (2 per ID)
Products | product | primary, gallery, thumbnail | Product catalog photos (1-5 per product)
Rental Agreements | rental_agreement | document, signature, guardian_signature | Signed PDF + signature images
@@ -232,6 +233,11 @@ Consignment | consignment_detail | agreement | Consignment agreement PDF
## 8.2 Schema Changes
### member — Add Profile Photo
Column | Type | Notes
profile_image_file_id | uuid FK | References file.id — profile photo. UI shows silhouette placeholder when null.
### member_identifier — Replace Base64 Columns
Remove `image_front` (text) and `image_back` (text) columns. Replace with: