init
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* WaAdmins 模型
|
||||
* 表说明:管理员表
|
||||
* 对应数据表:wa_admins
|
||||
* @property string $id id ID(非空,主键)
|
||||
* @property string $username username 用户名(非空)
|
||||
* @property string $nickname nickname 昵称(非空)
|
||||
* @property string $password password 密码(非空)
|
||||
* @property string $avatar avatar 头像(默认值:/app/admin/avatar.png)
|
||||
* @property string $email email 邮箱
|
||||
* @property string $mobile mobile 手机
|
||||
* @property string $created_at created_at 创建时间
|
||||
* @property string $updated_at updated_at 更新时间
|
||||
* @property string $login_at login_at 登录时间
|
||||
* @property int $status status 禁用
|
||||
*/
|
||||
class WaAdmins extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'wa_admins';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $pk = 'id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳(如需开启请改为 true,需确保表有 create_time/update_time 字段)
|
||||
* @var bool
|
||||
*/
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
/**
|
||||
* 字段严格检查(false=允许操作未定义字段)
|
||||
* @var bool
|
||||
*/
|
||||
protected $strict = false;
|
||||
}
|
||||
Reference in New Issue
Block a user