checkout, register, payment,

checkout correction,
register wizard,
payment packege,
This commit is contained in:
Kevin Adametz 2019-03-02 00:08:11 +01:00
parent 6e3adac4d7
commit 446bc4561b
48 changed files with 2580 additions and 1493 deletions

View file

@ -31,12 +31,19 @@ class CreateUsersTable extends Migration
$table->dateTime('agreement')->nullable();
$table->boolean('admin')->default(false);
$table->boolean('wizard')->default(false);
$table->boolean('blocked')->default(false);
$table->char('lang', 2)->index();
$table->text('notes')->nullable();
$table->rememberToken();
$table->timestamp('last_login')->nullable();
$table->timestamp('payment_account')->nullable();
$table->timestamp('payment_shop')->nullable();
$table->timestamps();
$table->softDeletes();

View file

@ -1,67 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAccountsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts', function (Blueprint $table) {
$table->increments('id');
$table->boolean('company')->default(true);
$table->string('company_name')->nullable()->index();
$table->string('company_street')->nullable();
$table->string('company_postal_code')->nullable();
$table->string('company_city')->nullable();
$table->unsignedInteger('company_pre_phone_id')->nullable();
$table->string('company_phone')->nullable();
$table->string('company_homepage')->nullable();
$table->unsignedInteger('company_country_id')->nullable()->index();
$table->char('salutation', 2)->nullable();
$table->string('title')->nullable();
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('street')->nullable();
$table->string('postal_code')->nullable();
$table->string('city')->nullable();
$table->unsignedInteger('country_id')->nullable()->index();
$table->unsignedInteger('pre_phone_id')->nullable();
$table->string('phone')->nullable();
$table->unsignedInteger('pre_mobil_id')->nullable();
$table->string('mobil')->nullable();
$table->date('birthday')->nullable();
$table->string('website')->nullable();
$table->string('facebook')->nullable();
$table->string('facebook_fanpage')->nullable();
$table->string('instagram')->nullable();
$table->timestamp('data_protection')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts');
}
}

View file

@ -52,6 +52,10 @@ class CreateProductsTable extends Migration
$table->unsignedInteger('amount')->nullable(); //for shop
$table->tinyInteger('show_at')->unsigned()->nullable()->default(0);
$table->string('action')->nullable();
$table->timestamps();
$table->softDeletes();

View file

@ -16,6 +16,7 @@ class CreateShoppingInstancesTable extends Migration
Schema::create('shopping_instances', function (Blueprint $table) {
$table->string('identifier')->unique()->index();
$table->unsignedInteger('user_shop_id');
$table->unsignedInteger('auth_user_id');
$table->unsignedInteger('country_id');
$table->string('subdomain');

View file

@ -16,6 +16,8 @@ class CreateShoppingUsersTable extends Migration
Schema::create('shopping_users', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('auth_user_id');
$table->char('billing_salutation', 2)->nullable();
$table->string('billing_company')->nullable();
$table->string('billing_firstname')->nullable();

View file

@ -17,6 +17,8 @@ class CreateShoppingOrdersTable extends Migration
$table->increments('id');
$table->unsignedInteger('shopping_user_id');
$table->unsignedInteger('auth_user_id');
$table->unsignedInteger('country_id');
$table->unsignedInteger('user_shop_id');

View file

@ -0,0 +1,88 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserAccountsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_accounts', function (Blueprint $table) {
$table->increments('id');
$table->string('company')->nullable();
$table->char('salutation', 2)->nullable();
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('address')->nullable();
$table->string('address_2')->nullable();
$table->string('zipcode', 10)->nullable();
$table->string('city')->nullable();
$table->unsignedInteger('country_id')->index()->default(1);
$table->unsignedInteger('pre_phone_id')->nullable();
$table->string('phone')->nullable();
$table->unsignedInteger('pre_mobil_id')->nullable();
$table->string('mobil')->nullable();
$table->string('tax_number', 20)->nullable();
$table->string('tax_identification_number', 20)->nullable();
$table->boolean('same_as_billing')->default(true);
$table->char('shipping_salutation', 2)->nullable();
$table->string('shipping_company')->nullable();
$table->string('shipping_firstname')->nullable();
$table->string('shipping_lastname')->nullable();
$table->string('shipping_address')->nullable();
$table->string('shipping_address_2')->nullable();
$table->string('shipping_zipcode')->nullable();
$table->string('shipping_city')->nullable();
$table->unsignedInteger('shipping_country_id')->default(1);
$table->unsignedInteger('shipping_pre_phone_id')->nullable();
$table->string('shipping_phone')->nullable();
$table->date('birthday')->nullable();
$table->string('website')->nullable();
$table->string('facebook')->nullable();
$table->string('facebook_fanpage')->nullable();
$table->string('instagram')->nullable();
$table->timestamp('data_protection')->nullable();
$table->timestamps();
$table->softDeletes();
$table->foreign('country_id')
->references('id')
->on('countries');
$table->foreign('shipping_country_id')
->references('id')
->on('countries');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_accounts');
}
}