SystemUser.php 1.5 KB

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