<?php
namespace App\Models;use Illuminate\Database\Eloquent\Model;use Illuminate\Database\Eloquent\Relations\BelongsTo;
class UserSetting extends Model{protected$fillable=['theme','timezone','date_format','time_format','default_report_range','default_project_id','per_page','in_app_notifications','reduced_motion'];protected function casts():array{return['in_app_notifications'=>'boolean','reduced_motion'=>'boolean'];}public function user():BelongsTo{return$this->belongsTo(User::class);}public static function defaults():array{return['theme'=>'system','timezone'=>'Europe/Istanbul','date_format'=>'DD.MM.YYYY','time_format'=>'24','default_report_range'=>'30_days','default_project_id'=>null,'per_page'=>25,'in_app_notifications'=>true,'reduced_motion'=>false];}}
