Game-Jaming/Backend/Database/KeyWord.php

12 lines
379 B
PHP
Raw Normal View History

2021-03-03 10:01:32 +00:00
<?php
2021-03-03 10:16:10 +00:00
require_once "../../bootstrap.php";
2021-03-03 10:01:32 +00:00
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2021-03-03 13:04:46 +00:00
Capsule::schema()->create("key_words", function (Blueprint $table){
2021-03-03 10:01:32 +00:00
$table->id();
$table->string('keyWord');
2021-03-03 13:04:46 +00:00
$table->foreignId("fkGroup")->constrained("groups");
$table->timestamps();
2021-03-03 10:01:32 +00:00
});