SsNode.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. namespace App\Http\Models;
  3. use Eloquent;
  4. use Illuminate\Database\Eloquent\Builder;
  5. use Illuminate\Database\Eloquent\Collection;
  6. use Illuminate\Database\Eloquent\Model;
  7. use Illuminate\Support\Carbon;
  8. /**
  9. * SS节点信息
  10. *
  11. * @property int $id
  12. * @property int $type 服务类型:1-ShadowsocksR、2-V2ray
  13. * @property string $name 名称
  14. * @property int $group_id 所属分组
  15. * @property string|null $country_code 国家代码
  16. * @property string|null $server 服务器域名地址
  17. * @property string|null $ip 服务器IPV4地址
  18. * @property string|null $ipv6 服务器IPV6地址
  19. * @property string|null $relay_server 中转地址
  20. * @property int|null $relay_port 中转端口
  21. * @property int $level 等级:0-无等级,全部可见
  22. * @property int $speed_limit 节点限速,为0表示不限速,单位Byte
  23. * @property int $client_limit 设备数限制
  24. * @property string|null $description 节点简单描述
  25. * @property string $method 加密方式
  26. * @property string $protocol 协议
  27. * @property string|null $protocol_param 协议参数
  28. * @property string $obfs 混淆
  29. * @property string|null $obfs_param 混淆参数
  30. * @property float $traffic_rate 流量比率
  31. * @property int $is_subscribe 是否允许用户订阅该节点:0-否、1-是
  32. * @property int $is_ddns 是否使用DDNS:0-否、1-是
  33. * @property int $is_relay 是否中转节点:0-否、1-是
  34. * @property int $is_udp 是否启用UDP:0-不启用、1-启用
  35. * @property int $ssh_port SSH端口
  36. * @property int $detectiontype 节点检测: 0-关闭、1-只检测TCP、2-只检测ICMP、3-检测全部
  37. * @property int $compatible 兼容SS
  38. * @property int $single 启用单端口功能:0-否、1-是
  39. * @property int|null $port 单端口的端口号
  40. * @property string|null $passwd 单端口的连接密码
  41. * @property int $sort 排序值,值越大越靠前显示
  42. * @property int $status 状态:0-维护、1-正常
  43. * @property int $v2_alter_id V2Ray额外ID
  44. * @property int $v2_connect_port V2Ray连接端口
  45. * @property int $v2_port V2Ray服务端口
  46. * @property string $v2_method V2Ray加密方式
  47. * @property string $v2_net V2Ray传输协议
  48. * @property string $v2_type V2Ray伪装类型
  49. * @property string $v2_host V2Ray伪装的域名
  50. * @property string $v2_path V2Ray的WS/H2路径
  51. * @property int $v2_connect_tls V2Ray连接TLS:0-未开启、1-开启
  52. * @property int $v2_tls V2Ray后端TLS:0-未开启、1-开启
  53. * @property string|null $tls_provider V2Ray节点的TLS提供商授权信息
  54. * @property int $trojan_port Trojan连接端口
  55. * @property Carbon $created_at
  56. * @property Carbon $updated_at
  57. * @property-read Collection|SsNodeLabel[] $label
  58. * @property-read int|null $label_count
  59. * @method static Builder|SsNode newModelQuery()
  60. * @method static Builder|SsNode newQuery()
  61. * @method static Builder|SsNode query()
  62. * @method static Builder|SsNode whereClientLimit($value)
  63. * @method static Builder|SsNode whereCompatible($value)
  64. * @method static Builder|SsNode whereCountryCode($value)
  65. * @method static Builder|SsNode whereCreatedAt($value)
  66. * @method static Builder|SsNode whereDescription($value)
  67. * @method static Builder|SsNode whereDetectiontype($value)
  68. * @method static Builder|SsNode whereGroupId($value)
  69. * @method static Builder|SsNode whereId($value)
  70. * @method static Builder|SsNode whereIp($value)
  71. * @method static Builder|SsNode whereIpv6($value)
  72. * @method static Builder|SsNode whereIsDdns($value)
  73. * @method static Builder|SsNode whereIsRelay($value)
  74. * @method static Builder|SsNode whereIsSubscribe($value)
  75. * @method static Builder|SsNode whereIsUdp($value)
  76. * @method static Builder|SsNode whereLevel($value)
  77. * @method static Builder|SsNode whereMethod($value)
  78. * @method static Builder|SsNode whereName($value)
  79. * @method static Builder|SsNode whereObfs($value)
  80. * @method static Builder|SsNode whereObfsParam($value)
  81. * @method static Builder|SsNode wherePasswd($value)
  82. * @method static Builder|SsNode wherePort($value)
  83. * @method static Builder|SsNode whereProtocol($value)
  84. * @method static Builder|SsNode whereProtocolParam($value)
  85. * @method static Builder|SsNode whereRelayPort($value)
  86. * @method static Builder|SsNode whereRelayServer($value)
  87. * @method static Builder|SsNode whereServer($value)
  88. * @method static Builder|SsNode whereSingle($value)
  89. * @method static Builder|SsNode whereSort($value)
  90. * @method static Builder|SsNode whereSpeedLimit($value)
  91. * @method static Builder|SsNode whereSshPort($value)
  92. * @method static Builder|SsNode whereStatus($value)
  93. * @method static Builder|SsNode whereTlsProvider($value)
  94. * @method static Builder|SsNode whereTrafficRate($value)
  95. * @method static Builder|SsNode whereTrojanPort($value)
  96. * @method static Builder|SsNode whereType($value)
  97. * @method static Builder|SsNode whereUpdatedAt($value)
  98. * @method static Builder|SsNode whereV2AlterId($value)
  99. * @method static Builder|SsNode whereV2ConnectPort($value)
  100. * @method static Builder|SsNode whereV2ConnectTls($value)
  101. * @method static Builder|SsNode whereV2Host($value)
  102. * @method static Builder|SsNode whereV2Method($value)
  103. * @method static Builder|SsNode whereV2Net($value)
  104. * @method static Builder|SsNode whereV2Path($value)
  105. * @method static Builder|SsNode whereV2Port($value)
  106. * @method static Builder|SsNode whereV2Tls($value)
  107. * @method static Builder|SsNode whereV2Type($value)
  108. * @mixin Eloquent
  109. */
  110. class SsNode extends Model {
  111. protected $table = 'ss_node';
  112. protected $primaryKey = 'id';
  113. function label() {
  114. return $this->hasMany(SsNodeLabel::class, 'node_id', 'id');
  115. }
  116. }