- add notes

This commit is contained in:
2023-08-07 01:30:38 +02:00
parent ffee3b257d
commit fcf422678c
13 changed files with 486 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?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('notes', function (Blueprint $table) {
$table->id();
$table->string('title', 250);
$table->text('note');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('notes');
}
};