mirror of https://github.com/Devoalda/LaDo.git
35 lines
805 B
PHP
35 lines
805 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('todos', function (Blueprint $table) {
|
|
$table->uuid('id')->primary();
|
|
$table->string('title');
|
|
$table->text('description')->nullable();
|
|
|
|
$table->timestamp('due_start')->nullable();
|
|
$table->timestamp('due_end')->nullable();
|
|
$table->timestamp('completed_at')->nullable();
|
|
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('todos');
|
|
}
|
|
};
|