Free Shipping, Business Levels correction, Products Buying, Fonts
This commit is contained in:
parent
3f2fbd6d5b
commit
0341c9c189
197 changed files with 9161 additions and 329 deletions
|
|
@ -35,6 +35,7 @@ class CreateProductsTable extends Migration
|
|||
$table->unsignedInteger('weight')->nullable()->default(0);
|
||||
|
||||
$table->boolean('no_commission')->default(false);
|
||||
$table->boolean('no_free_shipping')->default(false);
|
||||
|
||||
$table->string('contents')->nullable();
|
||||
$table->unsignedInteger('contents_total')->nullable();
|
||||
|
|
@ -65,6 +66,8 @@ 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->string('identifier', 20)->nullable();
|
||||
$table->string('action')->nullable();
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ class CreateUserBusinessesTable extends Migration
|
|||
$table->decimal('sales_volume_total_shop', 13, 2)->nullable();
|
||||
$table->decimal('sales_volume_total_sum', 13, 2)->nullable();
|
||||
|
||||
$table->unsignedTinyInteger('margin')->nullable();
|
||||
$table->unsignedTinyInteger('margin_shop')->nullable();
|
||||
$table->decimal('margin', 5, 2)->nullable();
|
||||
$table->decimal('margin_shop', 5, 2)->nullable();
|
||||
|
||||
$table->unsignedSmallInteger('qual_kp')->nullable();
|
||||
$table->unsignedInteger('qual_tp')->nullable();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@ class CreateUserCreditItemsTable extends Migration
|
|||
Schema::create('user_credit_items', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('user_id');
|
||||
$table->unsignedInteger('user_credit_id')->nullable();;
|
||||
$table->unsignedInteger('user_credit_id')->nullable();
|
||||
$table->unsignedInteger('user_business_id')->nullable();
|
||||
$table->decimal('credit', 13, 2)->nullable();
|
||||
$table->text('message')->nullable();
|
||||
$table->unsignedTinyInteger('status')->index()->default(0);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateProductBuyingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('product_buyings', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('user_id');
|
||||
$table->unsignedInteger('product_id')->index();
|
||||
$table->unsignedTinyInteger('amount')->default(0);
|
||||
|
||||
$table->softDeletes();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')
|
||||
->on('users');
|
||||
|
||||
$table->foreign('product_id')
|
||||
->references('id')
|
||||
->on('products')
|
||||
->onDelete('cascade');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('product_buyings');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue