bigIncrements('id'); $table->bigInteger('salutation_id')->nullable(); $table->string('title', 255)->nullable(); $table->string('name', 255); $table->string('firstname', 255)->nullable(); $table->date('birthdate')->nullable(); $table->string('company', 255)->nullable(); $table->string('street', 255)->nullable(); $table->string('zip', 255)->nullable(); $table->string('city', 255)->nullable(); $table->string('email', 255)->nullable(); $table->string('phone', 255)->nullable(); $table->string('phonebusiness', 255)->nullable(); $table->string('phonemobile', 255)->nullable(); $table->string('fax', 255)->nullable(); $table->string('bank', 80)->nullable(); $table->string('bank_code', 80)->nullable(); $table->string('bank_account_number', 80)->nullable(); $table->bigInteger('credit_card_type_id')->nullable(); $table->string('credit_card_number', 80)->nullable(); $table->date('credit_card_expiration_date')->nullable(); $table->text('participants_remarks')->nullable(); $table->text('miscellaneous_remarks')->nullable(); $table->dateTime('created_at'); $table->dateTime('updated_at'); $table->bigInteger('country_id')->nullable(); $table->index('salutation_id', 'salutation_id_idx'); $table->index('credit_card_type_id', 'credit_card_type_id_idx'); $table->index('country_id', 'country_id_idx'); $table->foreign('country_id', 'customer_country_id_travel_country_id')->references('id')->on('travel_country')->onDelete('RESTRICT ')->onUpdate('RESTRICT'); $table->foreign('credit_card_type_id', 'customer_credit_card_type_id_credit_card_type_id')->references('id')->on('credit_card_type')->onDelete('RESTRICT ')->onUpdate('RESTRICT'); $table->foreign('salutation_id', 'customer_salutation_id_salutation_id')->references('id')->on('salutation')->onDelete('RESTRICT ')->onUpdate('RESTRICT'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('customer'); } }