<?php
use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;
return new class extends Migration{public function up():void{Schema::create('user_settings',function(Blueprint$t){$t->id();$t->foreignId('user_id')->unique()->constrained()->cascadeOnDelete();$t->string('theme',10)->default('system');$t->string('timezone',64)->default('Europe/Istanbul');$t->string('date_format',20)->default('DD.MM.YYYY');$t->string('time_format',10)->default('24');$t->string('default_report_range',20)->default('30_days');$t->foreignId('default_project_id')->nullable()->constrained('projects')->nullOnDelete();$t->unsignedSmallInteger('per_page')->default(25);$t->boolean('in_app_notifications')->default(true);$t->boolean('reduced_motion')->default(false);$t->timestamps();});}public function down():void{Schema::dropIfExists('user_settings');}};
