Files
ladill-frontdesk/app/Models/EmployeePresenceEvent.php
isaaccladandCursor 890c2c71e3
Deploy Ladill Frontdesk / deploy (push) Failing after 26s
Add employee presence with kiosk sign-in, QR badges, and mobile step-out.
Enables staff roster, PIN/code kiosk flow, attendance reports, evacuation staff roll call, webhooks, branch mismatch warnings, and a linked-user My presence portal.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 21:11:18 +00:00

32 lines
793 B
PHP

<?php
namespace App\Models;
use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class EmployeePresenceEvent extends Model
{
use BelongsToOwner;
public const EVENT_SIGN_IN = 'sign_in';
public const EVENT_SIGN_OUT = 'sign_out';
public const EVENT_STEP_OUT = 'step_out';
public const EVENT_STEP_IN = 'step_in';
protected $table = 'frontdesk_employee_presence_events';
protected $fillable = [
'owner_ref', 'organization_id', 'employee_id', 'event', 'status_after',
'branch_id', 'device_id', 'destination', 'step_out_reason', 'notes',
];
public function employee(): BelongsTo
{
return $this->belongsTo(Employee::class, 'employee_id');
}
}