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.
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
|
|
|
|
|
|
class ActivityAuditLog extends Model
|
|
|
|
|
|
{
|
|
|
|
|
|
public const ACTION_APPROVE = 'approve';
|
|
|
|
|
|
|
|
|
|
|
|
public const ACTION_REJECT = 'reject';
|
|
|
|
|
|
|
|
|
|
|
|
/** 场馆/创建人保存活动并重新提交审核(非平台超管的 PUT update) */
|
|
|
|
|
|
public const ACTION_EDIT_SUBMIT = 'edit_submit';
|
|
|
|
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
|
'activity_id',
|
|
|
|
|
|
'admin_user_id',
|
|
|
|
|
|
'action',
|
|
|
|
|
|
'remark',
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
public function activity(): BelongsTo
|
|
|
|
|
|
{
|
|
|
|
|
|
return $this->belongsTo(Activity::class);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function adminUser(): BelongsTo
|
|
|
|
|
|
{
|
|
|
|
|
|
return $this->belongsTo(User::class, 'admin_user_id');
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|