Added scope migration and vertice in the model diagram.

This commit is contained in:
Lukas Halbritter
2018-09-07 10:33:02 +02:00
parent cc111ca2ed
commit eb820c58b2
2 changed files with 39 additions and 0 deletions
Binary file not shown.
@@ -0,0 +1,39 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateScopesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('scopes', function (Blueprint $table) {
$table->increments('id');
// The name of the scope. There are only four of them we need:
// 1. Ideeler Bereich
// 2. Zweckbetrieb
// 3. Vermögensverwaltung
// 4. Wirtschaftlicher Geschäftsbetrieb
$table->string('name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('scopes');
}
}