SystemUser.php 1.3 KB

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