User Order step1

This commit is contained in:
Kevin Adametz 2020-08-07 16:02:03 +02:00
parent eb55b01b0d
commit a5db985ae8
90 changed files with 6439 additions and 421 deletions

View file

@ -48,6 +48,7 @@ class CreateUsersTable extends Migration
$table->timestamp('payment_account')->nullable();
$table->timestamp('payment_shop')->nullable();
$table->boolean('abo_options')->default(false);
$table->string('payment_methods')->nullable();
$table->boolean('test_mode')->default(false);
$table->text('settings')->nullable();

View file

@ -59,6 +59,8 @@ class CreateProductsTable extends Migration
$table->unsignedInteger('amount')->nullable(); //for shop
$table->tinyInteger('show_at')->unsigned()->nullable()->default(0);
$table->boolean('shipping_addon')->default(false);
$table->string('identifier', 20)->nullable();
$table->string('action')->nullable();

View file

@ -18,6 +18,8 @@ class CreateShippingPricesTable extends Migration
$table->unsignedInteger('shipping_id');
$table->decimal('price', 8, 2)->nullable();
$table->decimal('price_comp', 8, 2)->nullable();
$table->decimal('tax_rate', 5, 2)->nullable();
$table->decimal('factor', 5, 2)->nullable();

View file

@ -36,6 +36,7 @@ class CreateShoppingOrdersTable extends Migration
$table->unsignedInteger('weight')->nullable();
$table->boolean('paid')->default(false);
$table->string('wp_invoice_path', 255)->nullable();
$table->string('txaction', 20)->nullable()->index();
$table->char('mode', 4)->nullable();

View file

@ -24,7 +24,6 @@ class CreatePaymentTransactionsTable extends Migration
$table->string('status',20)->nullable();
$table->string('key',40)->nullable();
$table->string('txaction',20)->nullable();

View file

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePaymentMethodsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('payment_methods', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->index();
$table->string('short', 10);
$table->unsignedTinyInteger('show_at')->nullable()->default(0);
$table->unsignedTinyInteger('pos')->nullable()->default(0);
$table->boolean('active')->default(false);
$table->boolean('default')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payment_methods');
}
}

View file

@ -0,0 +1,51 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLoggersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('loggers', function (Blueprint $table) {
$table->increments('id');
//from user
$table->unsignedInteger('user_id')->nullable();
//to model
$table->unsignedInteger('model_id')->index()->nullable();
$table->string('model')->index()->nullable();
$table->string('action')->index()->nullable();
$table->string('channel')->index()->nullable();
$table->text('message')->nullable();
$table->unsignedTinyInteger('level')->index()->default(0);
$table->timestamps();
$table->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('loggers');
}
}

View file

@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSySettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sy_settings', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->index();
$table->string('slug')->unique()->index();
$table->text('message')->nullable();
$table->string('action')->index()->nullable();
$table->unsignedTinyInteger('status')->index()->default(0);
$table->boolean('active')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('sy_settings');
}
}