membership register
This commit is contained in:
parent
3711fcc8d0
commit
37cb2b06c7
38 changed files with 1261 additions and 463 deletions
|
|
@ -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');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue