added models

This commit is contained in:
chrosey
2017-06-10 14:14:53 +02:00
parent ebb2728c18
commit 609231b044
11 changed files with 274 additions and 0 deletions
@@ -0,0 +1,36 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVeranstaltungsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('veranstaltungen', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->dateTime('beginn');
$table->string('name',200);
$table->integer('gaeste')->unsigned();
$table->string('hinweise',2000);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('veranstaltungen');
}
}