Game-Jaming/Backend/Database/Vote.php

15 lines
462 B
PHP

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