NodePing.php 1.3 KB

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