Add inventory audit mode with camera QR scanning

Lets an employee walk the premises, scan each object's QR to confirm
it's present and record where it was found (defaulting to the last
picked location), and track found/not-found progress for the walk.
Scanning a box's QR shows its contents read-only without affecting
the found/not-found counts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
jze9
2026-07-22 14:04:00 +05:00
parent 78862296c4
commit f99949559c
16 changed files with 506 additions and 2 deletions

View File

@@ -35,6 +35,10 @@ class ObjectUpdate(BaseModel):
box_id: uuid.UUID | None = None
class ObjectScan(BaseModel):
box_id: uuid.UUID | None = None
class ObjectRead(BaseModel):
model_config = ConfigDict(from_attributes=True)
@@ -46,5 +50,6 @@ class ObjectRead(BaseModel):
box: BoxRef | None
created_at: datetime
updated_at: datetime
last_seen_at: datetime | None
qr_code_url: str
photos: list[PhotoRead]