SsNodePing.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. *
  10. * @property int $id
  11. * @property int $node_id 对应节点id
  12. * @property int $ct 电信
  13. * @property int $cu 联通
  14. * @property int $cm 移动
  15. * @property int $hk 香港
  16. * @property Carbon $created_at
  17. * @property Carbon $updated_at
  18. * @property-read SsNode|null $node
  19. * @method static Builder|SsNodePing newModelQuery()
  20. * @method static Builder|SsNodePing newQuery()
  21. * @method static Builder|SsNodePing query()
  22. * @method static Builder|SsNodePing whereCm($value)
  23. * @method static Builder|SsNodePing whereCreatedAt($value)
  24. * @method static Builder|SsNodePing whereCt($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. * @mixin Eloquent
  31. */
  32. class SsNodePing extends Model {
  33. protected $table = 'ss_node_ping';
  34. protected $primaryKey = 'id';
  35. public function node() {
  36. return $this->hasOne(SsNode::class, 'id', 'node_id');
  37. }
  38. }