Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| RolePlayConversations | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| project | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| newFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Models; |
| 4 | |
| 5 | use Database\Factories\Http\Models\RolePlayConversationsFactory; |
| 6 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 7 | |
| 8 | class RolePlayConversations extends Moloquent |
| 9 | { |
| 10 | use HasFactory; |
| 11 | protected $table = 'role_play_conversations'; |
| 12 | |
| 13 | protected $fillable = [ |
| 14 | 'user_id', |
| 15 | 'project_id', |
| 16 | 'score', |
| 17 | 'status', |
| 18 | 'prompt', |
| 19 | 'score_llm', |
| 20 | 'vapi_response', |
| 21 | 'duration', |
| 22 | 'transcript', |
| 23 | 'icp', |
| 24 | 'agent', |
| 25 | 'feedback', |
| 26 | 'updated_at', |
| 27 | 'created_at', |
| 28 | ]; |
| 29 | |
| 30 | public function project() |
| 31 | { |
| 32 | return $this->belongsTo(RolePlayProjects::class, 'project_id'); |
| 33 | } |
| 34 | |
| 35 | protected static function newFactory() |
| 36 | { |
| 37 | return RolePlayConversationsFactory::new(); |
| 38 | } |
| 39 | } |