+ Homparty Part 1

This commit is contained in:
Kevin Adametz 2020-10-16 16:18:00 +02:00
parent 74923859d1
commit 9252094a04
43 changed files with 2385 additions and 66 deletions

View file

@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHomepartiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('homeparties', function (Blueprint $table) {
$table->increments('id');
$table->date('date');
$table->string('name')->nullable();
$table->string('place')->nullable();
$table->text('description')->nullable();
$table->unsignedTinyInteger('pos')->default(0);
$table->unsignedTinyInteger('completed')->default(0);
$table->unsignedTinyInteger('status')->default(0);
$table->boolean('order_to')->default(true);
$table->boolean('active')->default(false);
$table->boolean('default')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('homeparties');
}
}