List all paddocks, create new paddock.

All paddocks new paddocks are closed.
This commit is contained in:
2020-04-17 09:08:22 +02:00
parent dcd75c3358
commit cf6d0ab467
7 changed files with 217 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePaddocksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('paddocks', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->boolean('isClosed');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('paddocks');
}
}