<?php12namespace Pterodactyl\Models;34use Illuminate\Database\Eloquent\Relations\HasMany;5use Illuminate\Database\Eloquent\Factories\HasFactory;67/**8* @property int $id9* @property string $uuid10* @property string $author11* @property string $name12* @property string|null $description13* @property \Carbon\Carbon $created_at14* @property \Carbon\Carbon $updated_at15* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Server[] $servers16* @property \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Egg[] $eggs17*/18class Nest extends Model19{20/** @use HasFactory<\Database\Factories\NestFactory> */21use HasFactory;2223/**24* The resource name for this model when it is transformed into an25* API representation using fractal.26*/27public const RESOURCE_NAME = 'nest';2829/**30* The table associated with the model.31*/32protected $table = 'nests';3334/**35* Fields that are mass assignable.36*/37protected $fillable = [38'name',39'description',40];4142public static array $validationRules = [43'author' => 'required|string|email',44'name' => 'required|string|max:191',45'description' => 'nullable|string',46];4748/**49* Gets all eggs associated with this service.50*/51public function eggs(): HasMany52{53return $this->hasMany(Egg::class);54}5556/**57* Gets all servers associated with this nest.58*/59public function servers(): HasMany60{61return $this->hasMany(Server::class);62}63}646566