]> git.localhorst.tv Git - alttp.git/blob - database/migrations/2024_02_28_141025_create_guessing_winners_table.php
tentative inverted logic
[alttp.git] / database / migrations / 2024_02_28_141025_create_guessing_winners_table.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
6
7 return new class extends Migration
8 {
9         /**
10          * Run the migrations.
11          *
12          * @return void
13          */
14         public function up()
15         {
16                 Schema::create('guessing_winners', function (Blueprint $table) {
17                         $table->id();
18                         $table->timestamps();
19                         $table->foreignId('channel_id')->constrained();
20                         $table->string('pod');
21                         $table->string('uid');
22                         $table->string('uname');
23                         $table->string('guess');
24                         $table->string('solution');
25                         $table->integer('score');
26                 });
27         }
28
29         /**
30          * Reverse the migrations.
31          *
32          * @return void
33          */
34         public function down()
35         {
36                 Schema::dropIfExists('guessing_winners');
37         }
38 };