love_php/app/Models/CommunityMomentComplaint.php

21 lines
383 B
PHP
Raw Permalink Normal View History

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