Files
alrahma_sunday_school_api/app/Models/Preferences.php
T
2026-03-05 12:29:37 -05:00

33 lines
777 B
PHP

<?php
namespace App\Models;
use App\Models\BaseModel;
class Preferences extends BaseModel
{
protected $table = 'user_preferences'; // Adjusted to match the table name
protected $primaryKey = 'id'; // Primary key of the table
// Allowed fields to enable mass assignment
protected $fillable = [
'user_id',
'notification_email',
'notification_sms',
'theme',
'language',
'style_color',
'menu_color',
'menu_custom_bg',
'menu_custom_text',
'menu_custom_mode',
'created_at',
'updated_at',
];
// Enable automatic timestamp management if needed
public $timestamps = true;
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
}