1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- class GameUserScore extends Model
- {
- use HasFactory;
- const CREATED_AT = null;
- const UPDATED_AT = null;
- public function changeUser(){
- return $this->belongsTo(User::class, 'change_user_id', 'id');
- }
- public function holeData(){
- return $this->belongsTo(CourseHole::class, 'hole_id', 'id');
- }
- public function gameUser(){
- return $this->belongsTo(GameUser::class, 'game_user_id', 'id');
- }
- }
|