Files
Kol-Manager/database/migrations/2026_04_02_000000_create_notes_table.php
I-Fun 1b90f730a6 feat: add notes management feature with CRUD operations
- Created Note model and controller for handling notes.
- Added routes for notes CRUD operations.
- Implemented notes index view with search and pinning functionality.
- Created migration for notes table with necessary fields.
- Developed event creation form with client and contract options.
2026-04-02 23:24:38 +07:00

26 lines
702 B
PHP

<?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('notes', function (Blueprint $table): void {
$table->id();
$table->string('title')->default('Untitled Note');
$table->json('content')->nullable(); // array of block objects
$table->string('color', 20)->default('#FFFFFF');
$table->boolean('is_pinned')->default(false);
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('notes');
}
};