init
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* WaUsers 模型
|
||||
* 表说明:用户表
|
||||
* 对应数据表:wa_users
|
||||
* @property string $id id 主键(非空,主键)
|
||||
* @property string $username username 用户名(非空)
|
||||
* @property string $nickname nickname 昵称(非空)
|
||||
* @property string $password password 密码(非空)
|
||||
* @property string $sex sex 性别(非空,默认值:1)
|
||||
* @property string $avatar avatar 头像
|
||||
* @property string $email email 邮箱
|
||||
* @property string $mobile mobile 手机
|
||||
* @property int $level level 等级(非空,默认值:0)
|
||||
* @property string $birthday birthday 生日
|
||||
* @property float $money money 余额(元)(非空,默认值:0.00)
|
||||
* @property int $score score 积分(非空,默认值:0)
|
||||
* @property string $last_time last_time 登录时间
|
||||
* @property string $last_ip last_ip 登录ip
|
||||
* @property string $join_time join_time 注册时间
|
||||
* @property string $join_ip join_ip 注册ip
|
||||
* @property string $token token token
|
||||
* @property string $created_at created_at 创建时间
|
||||
* @property string $updated_at updated_at 更新时间
|
||||
* @property int $role role 角色(非空,默认值:1)
|
||||
* @property int $status status 禁用(非空,默认值:0)
|
||||
*/
|
||||
class WaUsers extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'wa_users';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @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