membership register

This commit is contained in:
Kevin Adametz 2020-02-15 14:53:32 +01:00
parent 3711fcc8d0
commit 37cb2b06c7
38 changed files with 1261 additions and 463 deletions

View file

@ -45,16 +45,31 @@ class CreateUsersTable extends Migration
$table->rememberToken();
$table->timestamp('last_login')->nullable();
$table->unsignedInteger('payment_order_id')->nullable();
$table->timestamp('payment_account')->nullable();
$table->timestamp('payment_shop')->nullable();
$table->boolean('abo_options')->default(false);
$table->timestamps();
$table->softDeletes();
$table->foreign('account_id')
->references('id')
->on('user_accounts');
$table->foreign('m_level')
->references('id')
->on('user_levels');
$table->foreign('m_sponsor')
->references('id')
->on('users');
$table->foreign('payment_order_id')
->references('id')
->on('products');
});
}

View file

@ -54,6 +54,7 @@ class CreateProductsTable extends Migration
$table->unsignedInteger('amount')->nullable(); //for shop
$table->tinyInteger('show_at')->unsigned()->nullable()->default(0);
$table->string('identifier', 20)->nullable();
$table->string('action')->nullable();

View file

@ -47,6 +47,9 @@ class CreateShoppingUsersTable extends Migration
$table->unsignedInteger('shipping_country_id');
$table->string('shipping_phone')->nullable();
$table->boolean('abo_options')->default(false);
$table->timestamps();
$table->foreign('billing_country_id')

View file

@ -65,6 +65,8 @@ class CreateUserAccountsTable extends Migration
$table->string('facebook_fanpage')->nullable();
$table->string('instagram')->nullable();
$table->text('payment_data')->nullable();
$table->timestamp('data_protection')->nullable();
$table->timestamps();