123456789101112131415161718192021222324252627282930313233343536 |
- <?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');
- }
- }
|