Upload Files Booking, Mails, Attachments,

This commit is contained in:
Kevin Adametz 2020-04-17 15:51:22 +02:00
parent 5daea268f7
commit 68b9d1ff88
92 changed files with 2837 additions and 1778 deletions

View file

@ -58,9 +58,14 @@ class CreateBookingTable extends Migration
$table->unsignedBigInteger('airline_id')->nullable();
$table->tinyInteger('refund')->nullable()->default(0);
$table->date('refund_date')->nullable();
$table->date('lawyer_date')->nullable();
$table->tinyInteger('hold')->nullable()->default(0);
$table->tinyInteger('xx_tkt')->nullable()->default(0);
$table->date('xx_tkt_date')->nullable();
$table->string('filekey', 255)->nullable();
$table->tinyInteger('is_rail_fly')->nullable()->default(0);
$table->text('notice')->nullable();
$table->dateTime('updated_at');
$table->dateTime('created_at');

View file

@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBookingFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_files', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('booking_id')->nullable();
$table->string('identifier')->index();
$table->string('filename');
$table->string('dir');
$table->string('original_name');
$table->string('ext');
$table->string('mine');
$table->unsignedInteger('size');
$table->timestamps();
$table->foreign('booking_id')
->references('id')
->on('booking');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_files');
}
}