38 lines
846 B
PHP
38 lines
846 B
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use think\Model;
|
|
use think\model\concern\SoftDelete;
|
|
|
|
class User extends Model
|
|
{
|
|
use SoftDelete;
|
|
|
|
const ADMIN_STP = 1;
|
|
const ADMIN_OTP = 0;
|
|
const NOT_USER = -1;
|
|
const MASTER_USER = 1; // 操盘手
|
|
const CUSTOMER_USER = 2; // 门店接待
|
|
const STATUS_STOP = 0; // 禁用状态
|
|
const STATUS_ACTIVE = 1; // 活动状态
|
|
|
|
/**
|
|
* 数据表名
|
|
* @var string
|
|
*/
|
|
protected $name = 'users';
|
|
|
|
// 自动写入时间戳
|
|
protected $autoWriteTimestamp = true;
|
|
protected $createTime = 'createTime';
|
|
protected $updateTime = 'updateTime';
|
|
protected $deleteTime = 'deleteTime';
|
|
protected $defaultSoftDelete = 0;
|
|
|
|
/**
|
|
* 隐藏属性
|
|
* @var array
|
|
*/
|
|
protected $hidden = ['passwordMd5', 'passwordLocal', 'deleteTime'];
|
|
}
|