27 lines
498 B
PHP
27 lines
498 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class Chatbot extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'slug',
|
|
'system_prompt',
|
|
];
|
|
|
|
/**
|
|
* Get histories associated with this chatbot.
|
|
*/
|
|
public function histories(): HasMany
|
|
{
|
|
return $this->hasMany(ChatbotHistory::class);
|
|
}
|
|
}
|