Files
dsserver/app/model/WaAdmins.php
T
zimoyin 4c841b9dbf init
2026-04-02 17:42:00 +08:00

48 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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;
}