<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\DataPasien;

class Antrian extends Model
{
    use SoftDeletes;

    protected $table = 'antrian';
    protected $guarded = [
        'a_id'
    ];

    protected $primaryKey = 'a_id';

    const CREATED_AT = 'a_created_at';
    const UPDATED_AT = 'a_updated_at';
    const DELETED_AT = 'a_deleted_at';

    public function pasien()
    {
        return $this->belongsTo(DataPasien::class, 'dp_id')->withTrashed();
    }
}
