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.
This commit is contained in:
25
database/migrations/2026_04_02_000000_create_notes_table.php
Normal file
25
database/migrations/2026_04_02_000000_create_notes_table.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user