SystemUser.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace app\model\system;
  3. use app\extra\basic\Model;
  4. /**
  5. * @property integer $id (主键)
  6. * @property integer $user_id 账号唯一ID
  7. * @property integer $agent_id 代理ID
  8. * @property integer $store_id 门店ID
  9. * @property integer $factory_id 地址ID
  10. * @property string $username 用户名
  11. * @property string $truename 真实姓名
  12. * @property mixed $mobile 手机号码
  13. * @property string $password 密码
  14. * @property mixed $salt 密钥串
  15. * @property integer $status 状态
  16. * @property integer $type 1管理员2代理3门店4洗衣工厂
  17. * @property integer $is_deleted 删除状态
  18. * @property integer $is_super
  19. * @property string $remark 备注
  20. * @property string $login_ip 登录IP
  21. * @property mixed $login_at 登录时间
  22. * @property integer $login_num
  23. * @property string $create_ip
  24. * @property mixed $vip_at VIP到期时间
  25. * @property mixed $updated_at 更新时间
  26. * @property mixed $create_at 创建时间
  27. */
  28. class SystemUser extends Model
  29. {
  30. /**
  31. * The connection name for the model.
  32. *
  33. * @var string|null
  34. */
  35. protected $connection = 'mysql';
  36. /**
  37. * The table associated with the model.
  38. *
  39. * @var string
  40. */
  41. protected string $table = "system_user";
  42. /**
  43. * The primary key associated with the table.
  44. *
  45. * @var string
  46. */
  47. protected string $primaryKey = "id";
  48. /**
  49. * Indicates if the model should be timestamped.
  50. *
  51. * @var bool
  52. */
  53. public bool $timestamps = false;
  54. }