mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-05 03:58:39 +00:00
37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
|
/**
|
|
* 节点授权密钥
|
|
*
|
|
* @property int $id
|
|
* @property int $node_id 授权节点ID
|
|
* @property string $key 认证KEY
|
|
* @property string $secret 通信密钥
|
|
* @property \Illuminate\Support\Carbon $created_at 创建时间
|
|
* @property \Illuminate\Support\Carbon $updated_at 最后更新时间
|
|
* @property-read \App\Models\Node|null $node
|
|
* @method static Builder|NodeAuth newModelQuery()
|
|
* @method static Builder|NodeAuth newQuery()
|
|
* @method static Builder|NodeAuth query()
|
|
* @method static Builder|NodeAuth whereCreatedAt($value)
|
|
* @method static Builder|NodeAuth whereId($value)
|
|
* @method static Builder|NodeAuth whereKey($value)
|
|
* @method static Builder|NodeAuth whereNodeId($value)
|
|
* @method static Builder|NodeAuth whereSecret($value)
|
|
* @method static Builder|NodeAuth whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class NodeAuth extends Model {
|
|
protected $table = 'node_auth';
|
|
|
|
public function node(): HasOne {
|
|
return $this->hasOne(Node::class, 'id', 'node_id');
|
|
}
|
|
}
|