Browse Source

用户模型基类

master
xyiege 1 year ago
parent
commit
4141aa1813
  1. 39
      app/common/model/UserModel.php

39
app/common/model/UserModel.php

@ -0,0 +1,39 @@
<?php
namespace app\common\model;
use think\Model;
use think\model\concern\SoftDelete;
/**
* 用户模型
* Class Usermodel
* @package app\common\model
*/
class UserModel extends Model
{
/**
* 自动时间戳类型
* @var string
*/
protected $autoWriteTimestamp = true;
/**
* 添加时间
* @var string
*/
protected $createTime = 'create_time';
/**
* 更新时间
* @var string
*/
protected $updateTime = 'update_time';
/**
* 软删除
*/
use SoftDelete;
protected $deleteTime = false;
}
Loading…
Cancel
Save