Continuo migrando, estoy perfilando activity y los settings

This commit is contained in:
imnavajas
2024-05-01 22:13:00 +02:00
parent dce9e08cf6
commit 54de3402f3
62 changed files with 698 additions and 425 deletions

View File

@ -0,0 +1,38 @@
<?php
namespace App\Models\Sistema;
use App\Models\BaseModel;
class SettingsModel extends BaseModel
{
protected $table = 'auth_settings';
protected $primaryKey = 'id';
protected $returnType = "App\Entities\Sistema\SettingsEntity";
const SORTABLE = [
];
protected $allowedFields = [
'email_gateway',
'email_name',
'email_address',
'email_smtp',
'email_port',
'email_pass',
'email_cert',
'remove_log',
'remove_log_time',
'remove_log_latest',
'storage_gateway',
'backup_storage',
'backup_table',
'backup_email',
'backup_notification_email',
'backup_automatic',
'backup_time',
'backup_latest'
];
protected $useTimestamps = true;
protected $updatedField = 'updated_at';
}