2020-04-12 00:26:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class CreateMembersTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('members', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
2020-06-01 22:22:19 +02:00
|
|
|
$table->string('firstname');
|
|
|
|
$table->string('lastname');
|
|
|
|
$table->string('nickname')->nullable();
|
|
|
|
$table->integer('gender_id')->unsigned()->nullable();
|
|
|
|
$table->integer('country_id')->unsigned();
|
|
|
|
$table->string('other_country')->nullable();
|
|
|
|
$table->integer('confession_id')->unsigned()->nullable();
|
|
|
|
$table->date('birthday');
|
|
|
|
$table->date('joined_at');
|
2021-04-10 02:11:13 +02:00
|
|
|
$table->boolean('send_newspaper');
|
2020-06-01 22:22:19 +02:00
|
|
|
$table->string('address');
|
|
|
|
$table->string('further_address')->nullable();
|
|
|
|
$table->string('zip');
|
2021-04-10 01:39:39 +02:00
|
|
|
$table->string('location');
|
2020-06-01 22:22:19 +02:00
|
|
|
$table->string('region_id')->nullable();
|
2021-04-10 01:39:39 +02:00
|
|
|
$table->string('main_phone')->nullable();
|
|
|
|
$table->string('mobile_phone')->nullable();
|
|
|
|
$table->string('work_phone')->nullable();
|
2020-06-01 22:22:19 +02:00
|
|
|
$table->string('fax')->nullable();
|
|
|
|
$table->string('email')->nullable();
|
|
|
|
$table->string('email_parents')->nullable();
|
|
|
|
$table->integer('nami_id')->nullable();
|
|
|
|
$table->integer('nationality_id')->unsigned();
|
|
|
|
$table->integer('subscription_id')->nullable();
|
|
|
|
|
2020-04-12 00:26:44 +02:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('members');
|
|
|
|
}
|
|
|
|
}
|