mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 17:52:09 +00:00
initial Setup and data structure
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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('rooms', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('title', 100)->nullable();
|
||||
$table->json('deck_config');
|
||||
$table->unsignedInteger('current_round')->default(1);
|
||||
$table->timestamp('revealed_at')->nullable();
|
||||
$table->unsignedBigInteger('state_version')->default(1);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('rooms');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user