id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->foreignId('assigned_to')->nullable()->constrained('users')->nullOnDelete(); $table->string('title'); $table->text('description'); $table->enum('category', ['IT', 'Facilities', 'HR', 'Other'])->default('Other'); $table->enum('priority', ['low', 'medium', 'high', 'urgent'])->default('medium'); $table->enum('status', ['open', 'in_progress', 'resolved', 'closed'])->default('open'); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('tickets'); } };