1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Models;
7
8/**
9 * @property Beatmapset $beatmapset
10 * @property int $beatmapset_id
11 * @property int $item_id
12 * @property BeatmapPack $pack
13 * @property int $pack_id
14 */
15class BeatmapPackItem extends Model
16{
17 protected $table = 'osu_beatmappacks_items';
18 protected $primaryKey = 'item_id';
19 public $timestamps = false;
20
21 public function pack()
22 {
23 return $this->belongsTo(BeatmapPack::class, 'pack_id');
24 }
25
26 public function beatmapset()
27 {
28 return $this->belongsTo(Beatmapset::class, 'beatmapset_id');
29 }
30}