You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
641 B

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class VenueAuditLog extends Model
{
public const ACTION_APPROVE = 'approve';
public const ACTION_REJECT = 'reject';
public const ACTION_EDIT_SUBMIT = 'edit_submit';
protected $fillable = [
'venue_id',
'admin_user_id',
'action',
'remark',
];
public function venue(): BelongsTo
{
return $this->belongsTo(Venue::class);
}
public function adminUser(): BelongsTo
{
return $this->belongsTo(User::class, 'admin_user_id');
}
}