mirror of
https://gh.wpcy.net/https://github.com/thomas-deep/freescoutAI.git
synced 2026-05-23 15:54:16 +08:00
44 lines
1 KiB
PHP
44 lines
1 KiB
PHP
<?php
|
|
|
|
namespace Modules\FreeScoutAI\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AISettings extends Model
|
|
{
|
|
protected $table = 'freescoutai_settings';
|
|
|
|
protected $primaryKey = 'mailbox_id';
|
|
|
|
public $incrementing = false;
|
|
|
|
protected $fillable = [
|
|
'mailbox_id',
|
|
'enabled',
|
|
'provider',
|
|
'api_key',
|
|
'model',
|
|
'priority_enabled',
|
|
'suggestions_enabled',
|
|
'modifications_enabled',
|
|
'summary_enabled',
|
|
'ollama_url',
|
|
'data_privacy_acknowledged',
|
|
'priority_prompt',
|
|
'suggestion_prompt',
|
|
'shorten_prompt',
|
|
'expand_prompt',
|
|
'formal_prompt',
|
|
'personal_prompt',
|
|
'summary_prompt'
|
|
];
|
|
|
|
protected $casts = [
|
|
'enabled' => 'boolean',
|
|
'priority_enabled' => 'boolean',
|
|
'suggestions_enabled' => 'boolean',
|
|
'modifications_enabled' => 'boolean',
|
|
'summary_enabled' => 'boolean',
|
|
'data_privacy_acknowledged' => 'boolean'
|
|
];
|
|
}
|