Files
chatroom/app/Models/AuditLog.php

42 lines
662 B
PHP
Raw Normal View History

<?php
/**
* 文件功能:操作日志模型
*
* 对应原 ASP 文件record
*
* @author ChatRoom Laravel
*
* @version 1.0.0
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AuditLog extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'occ_time',
'occ_env',
'stype',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'occ_time' => 'datetime',
];
}
}