Initial commit: Animexe Laravel platform
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TribunalArgument extends Model
|
||||
{
|
||||
protected $fillable = ['tribunal_id', 'user_id', 'side', 'body', 'vote_count'];
|
||||
|
||||
public function tribunal() { return $this->belongsTo(Tribunal::class); }
|
||||
public function user() { return $this->belongsTo(User::class); }
|
||||
public function argVotes() { return $this->hasMany(TribunalArgumentVote::class, 'argument_id'); }
|
||||
}
|
||||
Reference in New Issue
Block a user