initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
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('events', function (Blueprint $table): void {
|
||||
$table->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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user