Mail Weiterleitung / verlauf / Notizen Buchnungen
This commit is contained in:
parent
f1a1baa913
commit
644ec93c53
47 changed files with 663 additions and 59 deletions
|
|
@ -13,7 +13,7 @@ class CreateIQContentCategoriesTable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('i_q_content_categories', function (Blueprint $table) {y
|
||||
Schema::connection('mysql_stern')->create('i_q_content_categories', function (Blueprint $table) {
|
||||
|
||||
$table->bigIncrements('id');
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ class CreateCustomerMailsTable extends Migration
|
|||
$table->boolean('send')->default(false);
|
||||
$table->boolean('fail')->default(false);
|
||||
$table->text('error')->nullable();
|
||||
$table->text('forward')->nullable();
|
||||
|
||||
|
||||
$table->timestamp('sent_at')->nullable();
|
||||
$table->timestamp('scheduled_at')->nullable();
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@ class CreateCustomerFewoMailsTable extends Migration
|
|||
$table->boolean('send')->default(false);
|
||||
$table->boolean('fail')->default(false);
|
||||
$table->text('error')->nullable();
|
||||
$table->text('forward')->nullable();
|
||||
|
||||
|
||||
$table->timestamp('sent_at')->nullable();
|
||||
$table->timestamp('scheduled_at')->nullable();
|
||||
|
|
|
|||
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateBookingNoticesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('booking_notices', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->bigInteger('booking_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->timestamps();
|
||||
|
||||
$table->foreign('booking_id')
|
||||
->references('id')
|
||||
->on('booking');
|
||||
|
||||
$table->foreign('from_user_id')
|
||||
->references('id')
|
||||
->on('users')
|
||||
->onDelete('CASCADE');
|
||||
|
||||
$table->foreign('to_user_id')
|
||||
->references('id')
|
||||
->on('users')
|
||||
->onDelete('CASCADE');
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('booking_notices');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue