initial commit

This commit is contained in:
I-Fun
2026-04-01 08:04:56 +07:00
commit e09c8a5fa9
111 changed files with 18022 additions and 0 deletions

View File

@@ -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');
}
};