love_php/app/Models/SingleProfile.php

28 lines
544 B
PHP
Raw Permalink Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Base;
class SingleProfile extends Base
{
protected $fillable = [];
protected $guarded = [];
public function user()
{
return $this->hasOne(User::class, 'id', 'user_id');
}
public function profileCourtship()
{
return $this->hasOne(ProfileCourtship::class, 'user_id', 'user_id');
}
public function matchSingle()
{
return $this->hasMany(MatchingSingleHistory::class, 'user_id', 'user_id');
}
}