Report Strono-Date, Booking+Fewo Notice, Custom Mail opti

This commit is contained in:
Kevin Adametz 2021-04-23 14:55:48 +02:00
parent 644ec93c53
commit 5d55e5be3f
35 changed files with 581 additions and 41 deletions

View file

@ -23,6 +23,7 @@ class CreateBookingStornoTable extends Migration
$table->decimal('total', 10, 2)->default(0.00);
$table->decimal('storno', 10, 2)->default(0.00);
$table->date('storno_date')->nullable();
$table->date('storno_print')->nullable();
$table->binary('binary_data');
$table->tinyInteger('done')->nullable()->default(0);
$table->dateTime('created_at');

View file

@ -25,6 +25,8 @@ class CreateBookingNoticesTable extends Migration
$table->boolean('show')->default(false);
$table->boolean('important')->default(false);
$table->timestamp('edit_at')->nullable();
$table->timestamps();
$table->foreign('booking_id')

View file

@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBookingFewoNoticesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('booking_fewo_notices', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedInteger('travel_user_booking_fewo_id');
//from
$table->unsignedInteger('from_user_id');
//to
$table->unsignedInteger('to_user_id')->nullable();
$table->text('message')->nullable();
$table->boolean('show')->default(false);
$table->boolean('important')->default(false);
$table->timestamp('edit_at')->nullable();
$table->timestamps();
$table->foreign('travel_user_booking_fewo_id')
->references('id')
->on('travel_user_booking_fewos')
->onDelete('CASCADE');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('booking_fewo_notices');
}
}

View file

@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTravelUserBookingFewoNoticesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('travel_user_booking_fewo_notices', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedInteger('travel_user_booking_fewo_id');
//from
$table->unsignedInteger('from_user_id');
//to
$table->unsignedInteger('to_user_id')->nullable();
$table->text('message')->nullable();
$table->boolean('show')->default(false);
$table->boolean('important')->default(false);
$table->timestamp('edit_at')->nullable();
$table->timestamps();
$table->foreign('travel_user_booking_fewo_id', 'travel_user_booking_fewo_notices_id_foreign')
->references('id')
->on('travel_user_booking_fewos')
->onDelete('CASCADE');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('travel_user_booking_fewo_notices');
}
}