This commit is contained in:
Kevin Adametz 2024-08-05 12:05:24 +02:00
parent 04d677d37a
commit bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions

View file

@ -22,6 +22,8 @@ class CreateUsersTable extends Migration
$table->unsignedInteger('m_level')->nullable();
$table->unsignedInteger('m_sponsor')->nullable();
$table->unsignedInteger('pre_sponsor')->nullable();
$table->boolean('confirmed')->default(false);
$table->string('confirmation_code', 30)->index()->nullable();
$table->timestamp('confirmation_date')->nullable();
@ -68,6 +70,11 @@ class CreateUsersTable extends Migration
->references('id')
->on('users');
$table->foreign('pre_sponsor')
->references('id')
->on('users');
$table->foreign('payment_order_id')
->references('id')
->on('products');