Sammelbestellung von Extern
This commit is contained in:
parent
d01b4bd560
commit
582ca8299d
33 changed files with 3437 additions and 1466 deletions
|
|
@ -59,7 +59,8 @@ class CreateShoppingUsersTable extends Migration
|
|||
|
||||
$table->text('notice')->default(false);
|
||||
$table->unsignedInteger('homeparty_id')->nullable();
|
||||
|
||||
$table->unsignedInteger('shopping_collect_order_id')->nullable();
|
||||
|
||||
$table->char('mode', 4)->nullable();
|
||||
|
||||
$table->char('is_for', 2)->nullable();
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ class CreateShoppingOrderItemsTable extends Migration
|
|||
$table->string('row_id', 40)->nullable();
|
||||
$table->unsignedInteger('product_id');
|
||||
$table->unsignedInteger('homeparty_id')->nullable();
|
||||
$table->unsignedInteger('shopping_collect_order_id')->nullable();
|
||||
|
||||
|
||||
$table->unsignedTinyInteger('comp')->nullable();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateShoppingCollectOrdersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('shopping_collect_orders', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->unsignedInteger('user_id');
|
||||
$table->unsignedInteger('shopping_order_id')->index()->nullable();
|
||||
|
||||
$table->decimal('shipping', 8, 2)->nullable();
|
||||
$table->decimal('shipping_net', 8, 2)->nullable();
|
||||
$table->decimal('shipping_tax', 5, 2)->nullable();
|
||||
|
||||
$table->decimal('price_total_net', 8, 2)->nullable();
|
||||
$table->decimal('price_total', 8, 2)->nullable();
|
||||
$table->decimal('tax_total', 8, 2)->nullable();
|
||||
|
||||
$table->unsignedInteger('qty_total');
|
||||
$table->unsignedInteger('points')->nullable();
|
||||
|
||||
$table->string('tax_split')->nullable();
|
||||
|
||||
$table->text('orders')->nullable();
|
||||
$table->text('shop_items')->nullable();
|
||||
|
||||
$table->unsignedTinyInteger('status')->index()->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')
|
||||
->on('users');
|
||||
|
||||
$table->foreign('shopping_order_id')
|
||||
->references('id')
|
||||
->on('shopping_orders');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('shopping_collect_orders');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue