项目初始化
This commit is contained in:
22
app/admin/model/CrudLog.php
Normal file
22
app/admin/model/CrudLog.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use support\think\Model;
|
||||
|
||||
class CrudLog extends Model
|
||||
{
|
||||
protected string $table = 'crud_log';
|
||||
protected string $pk = 'id';
|
||||
protected bool $autoWriteTimestamp = true;
|
||||
protected bool $updateTime = false;
|
||||
|
||||
protected array $type = [
|
||||
'create_time' => 'integer',
|
||||
'update_time' => 'integer',
|
||||
'table' => 'array',
|
||||
'fields' => 'array',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user