Skip to content

Commit 031bbcd

Browse files
Create AIMatchFeedback.php
1 parent 188b5fa commit 031bbcd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

app/Models/AIMatchFeedback.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace App\Models;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
7+
class AIMatchFeedback extends Model
8+
{
9+
protected $table = 'ai_match_feedbacks';
10+
11+
protected $fillable = [
12+
'suggested_match_id',
13+
'user_id',
14+
'action',
15+
'payload',
16+
];
17+
18+
protected $casts = [
19+
'payload' => 'array',
20+
];
21+
22+
public function suggestedMatch()
23+
{
24+
return $this->belongsTo(AISuggestedMatch::class, 'suggested_match_id');
25+
}
26+
}

0 commit comments

Comments
 (0)