User.php 846 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Module\User\Model;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Support\Str;
  6. use \ModelCore;
  7. /**
  8. *
  9. * 用户
  10. *
  11. * field start
  12. * @property int $user_id
  13. * @property string $mobile 手机号
  14. * @property string $nickname 昵称
  15. * @property string $avatar 头像
  16. * @property string $invite_code 邀请码
  17. * @property int $up_user_id 上级用户id
  18. * @property string $password 助记词
  19. * @property string $desc 个性签名
  20. * @property int $is_prohibit 是否封禁
  21. * @property int $is_verify 是否认证
  22. * @property string $create_time
  23. * @property string $update_time
  24. * field end
  25. */
  26. class User extends ModelCore
  27. {
  28. use HasDateTimeFormatter;
  29. protected $table = 'user';
  30. protected $primaryKey = 'user_id';
  31. }