SsNodePing.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Http\Models;
  3. use Eloquent;
  4. use Illuminate\Database\Eloquent\Builder;
  5. use Illuminate\Database\Eloquent\Model;
  6. use Illuminate\Support\Carbon;
  7. /**
  8. * 节点定时Ping测速
  9. * App\Http\Models\SsNodePing
  10. *
  11. * @mixin Eloquent
  12. * @property int $id
  13. * @property int $node_id 对应节点id
  14. * @property int $ct 电信
  15. * @property int $cu 联通
  16. * @property int $cm 移动
  17. * @property int $hk 香港
  18. * @property Carbon $created_at
  19. * @property Carbon $updated_at
  20. * @method static Builder|SsNodePing newModelQuery()
  21. * @method static Builder|SsNodePing newQuery()
  22. * @method static Builder|SsNodePing query()
  23. * @method static Builder|SsNodePing whereCm($value)
  24. * @method static Builder|SsNodePing whereCreatedAt($value)
  25. * @method static Builder|SsNodePing whereCu($value)
  26. * @method static Builder|SsNodePing whereHk($value)
  27. * @method static Builder|SsNodePing whereId($value)
  28. * @method static Builder|SsNodePing whereNodeId($value)
  29. * @method static Builder|SsNodePing whereUpdatedAt($value)
  30. * @method static Builder|SsNodePing whereUt($value)
  31. * @method static Builder|SsNodePing whereCt($value)
  32. * @property-read SsNode $node
  33. */
  34. class SsNodePing extends Model
  35. {
  36. protected $table = 'ss_node_ping';
  37. protected $primaryKey = 'id';
  38. public function node()
  39. {
  40. return $this->hasOne(SsNode::class, 'id', 'node_id');
  41. }
  42. }