last changes since 6-2023

This commit is contained in:
Kevin Adametz 2023-07-03 10:07:08 +02:00
parent 0341c9c189
commit 04d677d37a
142 changed files with 7895 additions and 2855 deletions

View file

@ -66,8 +66,12 @@ class CreateProductsTable extends Migration
$table->string('show_on')->nullable();
$table->boolean('shipping_addon')->default(false);
$table->boolean('buying_restriction')->default(false);
$table->unsignedTinyInteger('buying_restriction_amount')->nullable();
$table->boolean('sponsor_buying_points')->default(false);
$table->unsignedTinyInteger('sponsor_buying_points_amount')->nullable();
$table->string('identifier', 20)->nullable();
$table->string('action')->nullable();

View file

@ -58,6 +58,8 @@ class CreateShoppingUsersTable extends Migration
$table->boolean('subscribed')->default(false);
$table->text('notice')->default(false);
$table->text('remarks')->default(false);
$table->unsignedInteger('homeparty_id')->nullable();
$table->unsignedInteger('shopping_collect_order_id')->nullable();

View file

@ -36,6 +36,8 @@ class CreateShoppingOrdersTable extends Migration
$table->decimal('subtotal_ws', 13, 2)->nullable();
$table->decimal('tax', 8, 2)->nullable();
$table->string('net_split', 20)->nullable();
$table->string('tax_split', 20)->nullable();
$table->decimal('total_shipping', 13, 2)->nullable();

View file

@ -22,7 +22,7 @@ class CreateUserLevelsTable extends Migration
$table->unsignedTinyInteger('margin_shop')->nullable();
$table->unsignedSmallInteger('qual_kp')->nullable();
$table->unsignedInteger('qual_tp')->nullable();
$table->unsignedInteger('qual_pp')->nullable();
$table->unsignedTinyInteger('growth_bonus')->nullable();
$table->unsignedTinyInteger('pr_line_1')->nullable();
@ -31,6 +31,10 @@ class CreateUserLevelsTable extends Migration
$table->unsignedTinyInteger('pr_line_4')->nullable();
$table->unsignedTinyInteger('pr_line_5')->nullable();
$table->unsignedTinyInteger('pr_line_6')->nullable();
$table->unsignedTinyInteger('pr_line_7')->nullable();
$table->unsignedTinyInteger('pr_line_8')->nullable();
$table->unsignedTinyInteger('paylines')->nullable();
$table->tinyInteger('pos')->unsigned()->nullable();
$table->boolean('active')->default(false);

View file

@ -26,6 +26,7 @@ class CreateUserSalesVolumesTable extends Migration
$table->integer('points')->nullable();
$table->integer('month_points')->nullable();
$table->integer('month_shop_points')->nullable();
$table->unsignedTinyInteger('status_points')->index()->default(1);
$table->decimal('total_net', 13, 2)->nullable();
$table->decimal('month_total_net', 13, 2)->nullable();

View file

@ -31,6 +31,7 @@ class CreateShoppingCollectOrdersTable extends Migration
$table->unsignedInteger('points')->nullable();
$table->string('tax_split')->nullable();
$table->string('net_split')->nullable();
$table->text('orders')->nullable();
$table->text('shop_items')->nullable();

View file

@ -40,7 +40,8 @@ class CreateUserBusinessesTable extends Migration
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->integer('sales_volume_points')->nullable();
$table->integer('sales_volume_KP_points')->nullable();
$table->integer('sales_volume_TP_points')->nullable();
$table->integer('sales_volume_points_shop')->nullable();
$table->integer('sales_volume_points_sum')->nullable();
@ -48,23 +49,30 @@ class CreateUserBusinessesTable extends Migration
$table->decimal('sales_volume_total_shop', 13, 2)->nullable();
$table->decimal('sales_volume_total_sum', 13, 2)->nullable();
$table->integer('payline_points')->nullable();
$table->integer('payline_points_qual_kp')->nullable();
$table->decimal('margin', 5, 2)->nullable();
$table->decimal('margin_shop', 5, 2)->nullable();
$table->unsignedSmallInteger('qual_kp')->nullable();
$table->unsignedInteger('qual_tp')->nullable();
$table->unsignedInteger('qual_pp')->nullable();
$table->integer('total_tp')->nullable();
$table->integer('total_qual_tp')->nullable();
$table->integer('total_pp')->nullable();
$table->integer('total_qual_pp')->nullable();
$table->decimal('commission_lines_total', 13, 2)->nullable();
$table->decimal('commission_shop_sales', 13, 2)->nullable();
$table->decimal('commission_team_total', 13, 2)->nullable();
$table->decimal('commission_pp_total', 13, 2)->nullable();
$table->decimal('commission_growth_total', 13, 2)->nullable();
$table->text('business_lines')->nullable();
$table->text('user_items')->nullable();
$table->text('qual_user_level')->nullable();
$table->text('qual_user_level_next')->nullable();
$table->text('next_qual_user_level')->nullable();
$table->text('next_can_user_level')->nullable();
$table->unsignedTinyInteger('version')->index();
$table->timestamps();

View file

@ -29,7 +29,7 @@ class CreateUserCreditsTable extends Migration
$table->decimal('tax', 8, 2)->nullable();
$table->decimal('total', 13, 2)->nullable();
$table->boolean('taxable')->default(false);
$table->unsignedTinyInteger('taxable')->default(0);
$table->string('filename', 255)->nullable();
$table->string('dir', 100)->nullable();