Files
ladill-frontdesk/app/Models/OfflineCheckIn.php
T
isaaccladandCursor 9e2d79936c
Deploy Ladill Frontdesk / deploy (push) Failing after 35s
Test / test (push) Failing after 2m45s
Initial Ladill Frontdesk release with deploy pipeline.
Visitor management app with SSO, kiosk, badges, reports, and Gitea CI deploy to frontdesk.ladill.com.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 20:37:15 +00:00

32 lines
685 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class OfflineCheckIn extends Model
{
protected $table = 'frontdesk_offline_checkins';
protected $fillable = ['device_id', 'client_id', 'payload', 'synced_at', 'visit_id'];
protected function casts(): array
{
return [
'payload' => 'array',
'synced_at' => 'datetime',
];
}
public function device(): BelongsTo
{
return $this->belongsTo(Device::class, 'device_id');
}
public function visit(): BelongsTo
{
return $this->belongsTo(Visit::class, 'visit_id');
}
}