Kundenhoheit

This commit is contained in:
Kevin Adametz 2020-05-06 15:43:53 +02:00
parent d8b5206031
commit dc63fa9fb2
52 changed files with 2436 additions and 557 deletions

View file

@ -17,6 +17,10 @@ class CreateShoppingUsersTable extends Migration
$table->increments('id');
$table->unsignedInteger('auth_user_id');
$table->unsignedInteger('member_id')->nullable();
$table->unsignedInteger('number')->index()->nullable();
$table->boolean('is_like')->default(false);
$table->char('billing_salutation', 2)->nullable();
$table->string('billing_company')->nullable();
@ -49,6 +53,7 @@ class CreateShoppingUsersTable extends Migration
$table->boolean('abo_options')->default(false);
$table->text('notice')->default(false);
$table->timestamps();
@ -60,6 +65,14 @@ class CreateShoppingUsersTable extends Migration
->references('id')
->on('countries');
$table->foreign('auth_user_id')
->references('id')
->on('users');
$table->foreign('member_id')
->references('id')
->on('users');
});
}

View file

@ -22,6 +22,8 @@ class CreateShoppingOrdersTable extends Migration
$table->unsignedInteger('country_id');
$table->unsignedInteger('user_shop_id');
$table->unsignedInteger('member_id')->nullable();
$table->unsignedTinyInteger('payment_for');
$table->decimal('total', 13, 2)->nullable();
@ -53,6 +55,10 @@ class CreateShoppingOrdersTable extends Migration
$table->foreign('user_shop_id')
->references('id')
->on('user_shops');
$table->foreign('member_id')
->references('id')
->on('users');
});
}