Teren-app/database/migrations/2024_11_09_213534_create_decisions_table.php
2024-11-13 22:11:07 +01:00

30 lines
633 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('decisions', function (Blueprint $table) {
$table->id();
$table->string('name', 125);
$table->string('color_tag', 55)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('decisions');
}
};