Updates to 03-2025

This commit is contained in:
Kevin Adametz 2025-04-01 10:36:47 +02:00
parent bfa3bb1df4
commit 9ae662f63e
243 changed files with 12580 additions and 12018 deletions

View file

@ -21,7 +21,9 @@ class CreateShoppingPaymentsTable extends Migration
$table->string('clearingtype',3);
$table->string('wallettype', 3)->nullable();
$table->string('onlinebanktransfertype',3)->nullable();
$table->string('pseudocardpan')->nullable();
$table->string('reference', 16);
$table->unsignedInteger('amount');
$table->string('currency', 6);
@ -31,6 +33,7 @@ class CreateShoppingPaymentsTable extends Migration
$table->boolean('is_abo')->default(false);
$table->unsignedTinyInteger('abo_interval')->nullable();
$table->string('identifier')->nullable();
$table->char('mode', 4)->nullable();

View file

@ -16,15 +16,18 @@ class CreateUserAbosTable extends Migration
Schema::create('user_abos', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id')->nullable();
$table->unsignedInteger('member_id')->nullable();
$table->unsignedInteger('shopping_user_id');
$table->char('is_for', 2)->nullable();
$table->string('email')->nullable();
$table->unsignedInteger('payone_userid');
$table->string('clearingtype',3);
$table->string('wallettype', 3)->nullable();
$table->unsignedInteger('amount');
$table->string('currency', 6);
$table->string('carddata')->nullable();
$table->decimal('amount', 13, 2)->default(0.00);
$table->boolean('active')->default(true);
$table->unsignedTinyInteger('status')->index()->default(0);
@ -34,9 +37,6 @@ class CreateUserAbosTable extends Migration
$table->date('next_date')->nullable();
$table->date('cancel_date')->nullable();
$table->unsignedTinyInteger('count')->default(0);
$table->timestamps();
$table->softDeletes();
$table->timestamp('user_deleted_at')->nullable();
@ -45,6 +45,10 @@ class CreateUserAbosTable extends Migration
->references('id')
->on('users');
$table->foreign('member_id')
->references('id')
->on('users');
$table->foreign('shopping_user_id')
->references('id')
->on('shopping_users');

View file

@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserAboItemsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_abo_items', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_abo_id');
$table->unsignedInteger('product_id');
$table->unsignedTinyInteger('comp')->nullable();
$table->unsignedInteger('qty');
$table->unsignedTinyInteger('status')->index()->default(0);
$table->timestamps();
$table->foreign('user_abo_id')
->references('id')
->on('user_abos')
->onDelete('cascade');
$table->foreign('product_id')
->references('id')
->on('products');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_abo_items');
}
}