love_php/app/Models/Live/Opus.php

21 lines
387 B
PHP
Raw Permalink Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models\Live;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Opus extends Model
{
use SoftDeletes;
protected $table = 'live_opus';
public function viewer(){
return $this->belongsTo(Viewer::class);
}
public function ballot(){
return $this->hasMany(Ballot::class, 'opus_id');
}
}