the browser-facing portion of osu!
at master 736 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; 7 8/** 9 * @property Beatmapset $beatmapset 10 * @property int $beatmapset_id 11 * @property \Carbon\Carbon $date 12 * @property int $rating 13 * @property User $user 14 * @property int $user_id 15 */ 16class BeatmapsetUserRating extends Model 17{ 18 protected $table = 'osu_user_beatmapset_ratings'; 19 20 public $timestamps = false; 21 22 public function beatmapset() 23 { 24 return $this->belongsTo(Beatmapset::class, 'beatmapset_id'); 25 } 26 27 public function user() 28 { 29 return $this->belongsTo(User::class, 'user_id'); 30 } 31}