Your Shop creates, verify user
This commit is contained in:
parent
c129a44383
commit
ccc2af4bf7
76 changed files with 3728 additions and 1477 deletions
|
|
@ -15,10 +15,11 @@ class CreateUsersTable extends Migration
|
|||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->string('password');
|
||||
|
||||
$table->unsignedInteger('account_id')->nullable();
|
||||
|
||||
$table->boolean('confirmed')->default(false);
|
||||
$table->string('confirmation_code', 30)->index()->nullable();
|
||||
$table->timestamp('confirmation_date')->nullable();
|
||||
|
|
@ -27,21 +28,16 @@ class CreateUsersTable extends Migration
|
|||
|
||||
$table->boolean('active')->default(false);
|
||||
$table->timestamp('active_date')->nullable();
|
||||
|
||||
$table->dateTime('agreement')->nullable();
|
||||
|
||||
$table->boolean('admin')->default(false);
|
||||
|
||||
$table->char('lang', 2)->index();
|
||||
|
||||
$table->text('notes')->nullable();
|
||||
|
||||
$table->rememberToken();
|
||||
|
||||
$table->timestamp('last_login')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->softDeletes();
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ class CreateAccountsTable extends Migration
|
|||
Schema::create('accounts', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->unsignedInteger('user_id')->index();
|
||||
|
||||
$table->boolean('company')->default(true);
|
||||
|
||||
$table->string('company_name')->nullable()->index();
|
||||
|
|
@ -50,14 +48,10 @@ class CreateAccountsTable extends Migration
|
|||
$table->string('facebook')->nullable();
|
||||
$table->string('facebook_fanpage')->nullable();
|
||||
$table->string('instagram')->nullable();
|
||||
|
||||
$table->timestamp('data_protection')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')
|
||||
->on('users');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUserShopsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_shops', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('user_id');
|
||||
|
||||
$table->string('name', 20)->unique()->index();
|
||||
$table->string('slug', 40)->unique()->index();
|
||||
|
||||
$table->boolean('active')->default(false);
|
||||
$table->timestamp('active_date')->nullable();
|
||||
|
||||
$table->string('title')->nullable();
|
||||
$table->text('trans_title')->nullable();
|
||||
|
||||
$table->text('copy')->nullable();
|
||||
$table->mediumText('trans_copy')->nullable();
|
||||
|
||||
$table->text('info')->nullable();
|
||||
$table->mediumText('trans_info')->nullable();
|
||||
|
||||
$table->string('featured')->nullable();
|
||||
|
||||
$table->string('filename')->nullable();
|
||||
$table->string('originalname')->nullable();
|
||||
$table->string('ext')->nullable();
|
||||
$table->string('mine')->nullable();
|
||||
$table->unsignedInteger('size')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')
|
||||
->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_shops');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue