<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class OnPremiseAdditional extends Model
{
    use HasFactory;

    protected $table = 'onpremise_additional';

    protected $fillable = [
        'status',
        'rm_status',
        'cp_status',
        'hod_status',
        'billing_status',
        'audit_status',
        'account_status',
        'Application_pay_status',
        'product_on_sign',
        'bm_comment',
        'rm_comment',
        'hod_comment',
        'billing_comment',
        'cp_comment',
        'audit_comment',
        'account_comment'
    ];
    
    protected $casts = [
        'product_on_sign' => 'boolean',
    ];

    public function onpremise() {
        return $this->belongsTo(onpremise::class);
    }
}
