love_php/app/Models/QATestRecord.php

25 lines
457 B
PHP
Raw Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class QATestRecord extends Model
{
//
public function test()
{
return $this->belongsTo(QATest::class,'q_a_test_id')->withTrashed();
}
public function user()
{
return $this->belongsTo(MerchantUsers::class,'merchant_user_id');
}
public function answer()
{
return $this->belongsTo(QAAnswer::class,'q_a_answer_id');
}
}