From e1a48c8208c181fd40ecb065878ba9ea49b1f48f Mon Sep 17 00:00:00 2001 From: ryo Date: Thu, 6 Mar 2025 13:06:42 +0000 Subject: Initial Commit --- .../2025_03_06_091820_create_players_table.php | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 database/migrations/2025_03_06_091820_create_players_table.php (limited to 'database/migrations/2025_03_06_091820_create_players_table.php') diff --git a/database/migrations/2025_03_06_091820_create_players_table.php b/database/migrations/2025_03_06_091820_create_players_table.php new file mode 100644 index 0000000..d078edf --- /dev/null +++ b/database/migrations/2025_03_06_091820_create_players_table.php @@ -0,0 +1,40 @@ +id(); + $table->timestamps(); + $table->string('name'); + $table->string('team'); + $table->integer('score'); + }); + + Schema::create('sessions', function (Blueprint $table) { + $table->string('id')->primary(); + $table->foreignId('user_id')->nullable()->index(); + $table->string('ip_address', 45)->nullable(); + $table->text('user_agent')->nullable(); + $table->longText('payload'); + $table->integer('last_activity')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('players'); + Schema::dropIfExists('sessions'); + } +}; -- cgit v1.2.3