Implement household, QR sale, team helpers assignment, and helper endpoints

This commit is contained in:
Developer
2026-06-29 16:56:33 +08:00
parent b85fc255cf
commit 7dc074e3c3
31 changed files with 1574 additions and 98 deletions

View File

@@ -28,6 +28,7 @@ class QrCodeBatch extends Model
'purpose',
'target_area_id',
'target_store_id',
'household_id',
'created_by_admin_id',
'printed_at',
'expires_at',
@@ -53,6 +54,11 @@ class QrCodeBatch extends Model
return $this->belongsTo(ServiceArea::class, 'target_area_id');
}
public function household(): BelongsTo
{
return $this->belongsTo(Household::class, 'household_id');
}
public function createdBy(): BelongsTo
{
return $this->belongsTo(User::class, 'created_by_admin_id');