mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-12 23:48:53 +00:00
25 lines
465 B
PHP
25 lines
465 B
PHP
<?php
|
|
|
|
namespace App\Http\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* 节点标签
|
|
* Class SsNodeLabel
|
|
*
|
|
* @package App\Http\Models
|
|
* @property-read \App\Http\Models\Label $labelInfo
|
|
* @mixin \Eloquent
|
|
*/
|
|
class SsNodeLabel extends Model
|
|
{
|
|
protected $table = 'ss_node_label';
|
|
protected $primaryKey = 'id';
|
|
public $timestamps = false;
|
|
|
|
function labelInfo()
|
|
{
|
|
return $this->hasOne(Label::class, 'id', 'label_id');
|
|
}
|
|
} |