feat: 更新 .env.example 文件,新增彩票业务配置与 Redis、邮件、队列等环境变量,优化开发环境设置
This commit is contained in:
38
app/Models/AuditLog.php
Normal file
38
app/Models/AuditLog.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Services\AuditLogger;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/** 运维/后台动作留痕表 audit_logs(写入请走 {@see AuditLogger})。 */
|
||||
class AuditLog extends Model
|
||||
{
|
||||
public const UPDATED_AT = null;
|
||||
|
||||
protected $table = 'audit_logs';
|
||||
|
||||
/** @var list<string> */
|
||||
protected $fillable = [
|
||||
'operator_type',
|
||||
'operator_id',
|
||||
'module_code',
|
||||
'action_code',
|
||||
'target_type',
|
||||
'target_id',
|
||||
'before_json',
|
||||
'after_json',
|
||||
'ip',
|
||||
'user_agent',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'operator_id' => 'integer',
|
||||
'before_json' => 'json',
|
||||
'after_json' => 'json',
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user