User Groups and Rights, Fewo

This commit is contained in:
Kevin Adametz 2019-04-10 17:38:52 +02:00
parent c0c2a1822c
commit 26ecb09cdc
22 changed files with 1316 additions and 787 deletions

View file

@ -36,10 +36,13 @@ class CreateUsersTable extends Migration
$table->char('lang', 2)->index();
$table->rememberToken();
$table->timestamp('last_login')->nullable();
$table->string('permissions');
$table->timestamps();
$table->softDeletes();

View file

@ -26,14 +26,7 @@ class CreateFewoSeasonTable extends Migration
$table->longText('description')->nullable();
$table->integer('only_weekday')->nullable();
});
}
/**

View file

@ -18,6 +18,7 @@ class CreateTravelUserBookingFewosTable extends Migration
$table->unsignedInteger('travel_user_id')->index();
$table->integer('fewo_lodging_id')->index();
$table->integer('fewo_reservation_id')->index();
$table->string('invoice_number')->nullable();
@ -34,6 +35,7 @@ class CreateTravelUserBookingFewosTable extends Migration
$table->decimal('price_travel', 13, 2)->nullable();
$table->decimal('price_deposit', 8, 2)->nullable();
$table->decimal('price_service', 8, 2)->nullable();
$table->decimal('price_balance', 8, 2)->nullable();
$table->decimal('price_total', 13, 2)->nullable();
@ -55,15 +57,19 @@ class CreateTravelUserBookingFewosTable extends Migration
$table->softDeletes();
$table->foreign('travel_user_id')
->references('id')
->on('travel_users')
->onDelete('CASCADE');
$table->foreign('fewo_lodging_id')
->references('id')
->on('fewo_lodging')
->onDelete('CASCADE');
$table->foreign('travel_user_id')
$table->foreign('fewo_reservation_id')
->references('id')
->on('travel_users')
->on('fewo_reservation')
->onDelete('CASCADE');