Implement household, QR sale, team helpers assignment, and helper endpoints
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user