This commit is contained in:
Kevin Adametz 2020-01-02 19:22:30 +01:00
parent f03862b523
commit 1a43060996
42 changed files with 1160 additions and 83 deletions

View file

@ -19,6 +19,7 @@ class CreateUsersTable extends Migration
$table->string('password');
$table->unsignedInteger('account_id')->nullable();
$table->unsignedInteger('m_level')->nullable();
$table->boolean('confirmed')->default(false);
$table->string('confirmation_code', 30)->index()->nullable();

View file

@ -23,6 +23,15 @@ class CreateCountriesTable extends Migration
$table->string('fr', 100);
$table->string('it', 100);
$table->string('ru', 100);
$table->boolean('active')->default(true);
$table->text('trans_name')->nullable();
$table->text('attr')->nullable();
$table->timestamps();
});
}

View file

@ -28,10 +28,11 @@ class CreateProductsTable extends Migration
$table->decimal('price', 8, 2)->nullable();
$table->decimal('price_ek', 8, 2)->nullable();
$table->decimal('tax', 5, 2)->nullable();
$table->decimal('price_old', 8, 2)->nullable(); //streichpreis
$table->unsignedInteger('weight')->nullable();
$table->unsignedInteger('points')->nullable()->default(0);
$table->unsignedInteger('weight')->nullable()->default(0);
$table->string('contents')->nullable();

View file

@ -16,6 +16,12 @@ class CreateUserAccountsTable extends Migration
Schema::create('user_accounts', function (Blueprint $table) {
$table->increments('id');
$table->string('m_account')->nullable();
$table->char('m_salutation', 2)->nullable();
$table->string('m_first_name')->nullable();
$table->string('m_last_name')->nullable();
$table->text('m_notes')->nullable();
$table->string('company')->nullable();
$table->char('salutation', 2)->nullable();
@ -35,7 +41,7 @@ class CreateUserAccountsTable extends Migration
$table->string('tax_number', 20)->nullable();
$table->string('tax_identification_number', 20)->nullable();
$table->unsignedTinyInteger('taxable_sales')->nullable();
$table->boolean('same_as_billing')->default(true);

View file

@ -0,0 +1,42 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserLevelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_levels', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->index();
$table->text('trans_name')->nullable();
$table->decimal('margin', 8, 2)->nullable();
$table->tinyInteger('pos')->unsigned()->nullable();
$table->boolean('active')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_levels');
}
}