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 Beatmap $beatmap
10 * @property int $beatmap_id
11 * @property int $playcount
12 * @property User $user
13 * @property int $user_id
14 */
15class BeatmapPlaycount extends Model
16{
17 protected $table = 'osu_user_beatmap_playcount';
18
19 public $timestamps = false;
20
21 public function beatmap()
22 {
23 return $this->belongsTo(Beatmap::class, 'beatmap_id');
24 }
25
26 public function user()
27 {
28 return $this->belongsTo(User::class, 'user_id');
29 }
30}