id(); $table->foreignId('client_id')->nullable()->constrained()->nullOnDelete(); $table->string('title'); $table->text('description')->nullable(); $table->string('event_type')->default('task'); // task, meeting, deadline, posting $table->dateTime('start_time'); $table->dateTime('end_time')->nullable(); $table->string('location')->nullable(); $table->boolean('is_priority')->default(false); $table->boolean('is_all_day')->default(false); $table->string('status')->default('pending'); // pending, in_progress, completed, cancelled $table->string('color')->default('#FFB7C5'); $table->text('notes')->nullable(); $table->timestamps(); $table->softDeletes(); }); } public function down(): void { Schema::dropIfExists('events'); } };