leads, sales lists, m_data, orders
This commit is contained in:
parent
1a43060996
commit
7ef7a507c7
26 changed files with 860 additions and 178 deletions
|
|
@ -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');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ class CreateProductsTable extends Migration
|
|||
|
||||
$table->softDeletes();
|
||||
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue