Game-Jaming/Backend/Database/Vote.php

15 lines
462 B
PHP
Raw Permalink Normal View History

2021-03-05 10:23:10 +00:00
<?php
2021-04-19 07:15:15 +00:00
require_once realpath(dirname(__FILE__) . "/../../bootstrap.php");
2021-03-05 10:23:10 +00:00
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2021-04-19 07:15:15 +00:00
Capsule::schema()->create("votes", function (Blueprint $table) {
2021-03-05 10:23:10 +00:00
$table->id();
$table->tinyInteger("points");
$table->text("comment")->nullable();
2021-04-19 07:15:15 +00:00
$table->foreignId("game_data_id")->constrained("game_data");
2021-03-05 10:23:10 +00:00
$table->timestamps();
});