Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
PromptSetting
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 boot
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 promptModel
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Http\Models\Prompts;
4
5use Illuminate\Database\Eloquent\Factories\HasFactory;
6use App\Http\Models\Moloquent;
7
8class PromptSetting extends Moloquent
9{
10    use HasFactory;
11
12    protected $table = 'prompt_setting';
13
14    protected $fillable = [
15        'prompt_model_id',
16        'temperature',
17        'region',
18        'instructions',
19        'output_token_limit',
20        'top_p',
21        'is_grounding',
22        'is_active',
23        'feature'
24    ];
25
26    /**
27     * The attributes that should be hidden for arrays.
28     *
29     * @var array
30     */
31    protected $hidden = [];
32
33    /**
34     * The accessors to append to the model's array form.
35     *
36     * @var array
37     */
38    protected $appends = [];
39
40    /**
41     * The "booting" method of the model.
42     */
43    protected static function boot(): void
44    {
45        parent::boot();
46    }
47
48    public function promptModel()
49    {
50        return $this->belongsTo(PromptModel::class, 'prompt_model_id');
51    }
52}