mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
||
|
||
// +----------------------------------------------------------------------
|
||
// | EasyAdmin
|
||
// +----------------------------------------------------------------------
|
||
// | PHP交流群: 763822524
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 https://mit-license.org
|
||
// +----------------------------------------------------------------------
|
||
// | github开源项目:https://github.com/zhongshaofa/EasyAdmin
|
||
// +----------------------------------------------------------------------
|
||
|
||
|
||
namespace app\common\model;
|
||
|
||
|
||
use think\Model;
|
||
use think\model\concern\SoftDelete;
|
||
|
||
/**
|
||
* 有关时间的模型
|
||
* Class TimeModel
|
||
* @package app\common\model
|
||
*/
|
||
class TimeModel extends Model
|
||
{
|
||
|
||
/**
|
||
* 自动时间戳类型
|
||
* @var string
|
||
*/
|
||
protected $autoWriteTimestamp = true;
|
||
|
||
/**
|
||
* 添加时间
|
||
* @var string
|
||
*/
|
||
protected $createTime = 'create_time';
|
||
|
||
/**
|
||
* 更新时间
|
||
* @var string
|
||
*/
|
||
protected $updateTime = 'update_time';
|
||
|
||
/**
|
||
* 软删除
|
||
*/
|
||
use SoftDelete;
|
||
protected $deleteTime = false;
|
||
|
||
} |