leads, sales lists, m_data, orders

This commit is contained in:
Kevin Adametz 2020-01-03 17:44:26 +01:00
parent 1a43060996
commit 7ef7a507c7
26 changed files with 860 additions and 178 deletions

View file

@ -20,6 +20,8 @@ class CreateUsersTable extends Migration
$table->unsignedInteger('account_id')->nullable();
$table->unsignedInteger('m_level')->nullable();
$table->unsignedInteger('m_sponsor')->nullable();
$table->boolean('confirmed')->default(false);
$table->string('confirmation_code', 30)->index()->nullable();
@ -48,6 +50,10 @@ class CreateUsersTable extends Migration
$table->timestamps();
$table->softDeletes();
$table->foreign('m_sponsor')
->references('id')
->on('users');
});
}

View file

@ -61,6 +61,8 @@ class CreateProductsTable extends Migration
$table->softDeletes();
});
}

View file

@ -30,6 +30,7 @@ class CreateShoppingUsersTable extends Migration
$table->string('billing_phone')->nullable();
$table->string('billing_email')->nullable();
$table->unsignedSmallInteger('orders')->nullable()->default(1);
$table->boolean('accepted_data_checkbox')->default(false);