the browser-facing portion of osu!
at master 929 B view raw
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\Multiplayer; 7 8use App\Models\Beatmap; 9use App\Models\Model; 10 11/** 12 * @property json|null $allowed_mods 13 * @property int $beatmap_id 14 * @property int|null $multiplayer_room_id 15 * @property int|null $order 16 * @property json|null $required_mods 17 * @property int $ruleset_id 18 */ 19class DailyChallengeQueueItem extends Model 20{ 21 public $timestamps = false; 22 23 protected $table = 'daily_challenge_queue'; 24 protected $casts = [ 25 'allowed_mods' => 'array', 26 'required_mods' => 'array', 27 ]; 28 29 public function beatmap() 30 { 31 return $this->belongsTo(Beatmap::class, 'beatmap_id')->withTrashed(); 32 } 33 34 public function multiplayerRoom() 35 { 36 return $this->belongsTo(Room::class); 37 } 38}