Files
chatroom/app/Models/AdminLog.php

61 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/**
* 文件功能:管理员操作统计模型
*
* 对应原 ASP 文件admincz
*
* @author ChatRoom Laravel
*
* @version 1.0.0
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AdminLog extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'username',
'uu_level',
'in_time',
'out_time',
'caozuo',
'fs_sl',
'fs_name',
'tr_sl',
'tr_name',
'jg_sl',
'jg_name',
'dj_sl',
'dj_name',
'yjdj_sl',
'yjdj_name',
'fip_sl',
'fip_name',
'fjj_sl',
'fjy_sl',
'flh_sl',
'jl_time',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'in_time' => 'datetime',
'jl_time' => 'datetime',
];
}
}