Auth, models, controllers and migrations scaffolding

This commit is contained in:
2021-09-04 22:09:55 +02:00
parent 643ed368e8
commit 1b8e76b183
37 changed files with 246776 additions and 8 deletions

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBeersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('beers', function (Blueprint $table) {
$table->unsignedBigInteger('id');
$table->string('beer');
$table->integer('rating');
$table->string('country');
$table->string('type');
$table->string('review')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('beers');
}
}