<?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*51* @return \Illuminate\Database\Eloquent\Relations\HasMany<\Pterodactyl\Models\Egg, $this>52*/53public function eggs(): HasMany54{55return $this->hasMany(Egg::class);56}5758/**59* Gets all servers associated with this nest.60*61* @return \Illuminate\Database\Eloquent\Relations\HasMany<\Pterodactyl\Models\Server, $this>62*/63public function servers(): HasMany64{65return $this->hasMany(Server::class);66}67}686970