| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- /**
- * 用户模型.
- *
- * @author jim <jim458734573@gmail.com>
- * @date 2020-01-10 21:03:42
- */
- declare(strict_types=1);
- namespace App\Model;
- class UserModel extends BaseModel
- {
- /**
- * 表名.
- *
- * @var string
- */
- protected $table = 'user';
- /**
- * 每个字段格式化数据类型.
- *
- * @var array
- */
- protected $casts = [
- 'id' => 'integer',
- 'created_at' => 'string',
- 'updated_at' => 'string',
- 'nick' => 'string',
- 'intro' => 'string',
- 'locked_at' => 'string',
- 'parent_uid' => 'string',
- 'region_code' => 'string',
- 'mobile' => 'string',
- 'avatar_path' => 'string',
- 'coins' => 'integer',
- 'balance' => 'float',
- 'birth' => 'string',
- 'gender' => 'integer',
- 'status' => 'integer',
- 'ip' => 'string',
- 'code' => 'string',
- 'last_login_at' => 'string',
- 'device_no' => 'string',
- 'device_type' => 'string',
- 'channel_id' => 'string',
- 'max_view' => 'integer',
- 'viewed_num' => 'integer',
- 'vip_expired' => 'string',
- 'finger' => 'string',
- 'bg_cover' => 'string',
- 'live_code' => 'string',
- ];
- }
|