* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ namespace App\Models; use App\Traits\Auditable; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use AllowDynamicProperties; /** * App\Models\FeaturedTorrent. * * @property int $id * @property int $user_id * @property int $torrent_id * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at */ #[AllowDynamicProperties] final class FeaturedTorrent extends Model { use Auditable; /** @use HasFactory<\Database\Factories\FeaturedTorrentFactory> */ use HasFactory; /** * Get the torrent that was featured. * * @return BelongsTo */ public function torrent(): BelongsTo { return $this->belongsTo(Torrent::class); } /** * Get the user that featured the torrent. * * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }