Customers Add+Edit, API WP
This commit is contained in:
parent
dc63fa9fb2
commit
75a0f9a38a
120 changed files with 11894 additions and 6134 deletions
|
|
@ -24,6 +24,15 @@ class CreateCountriesTable extends Migration
|
|||
$table->string('it', 100);
|
||||
$table->string('ru', 100);
|
||||
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
$table->boolean('switch')->default(false);
|
||||
$table->boolean('own_eur')->default(false);
|
||||
$table->boolean('currency')->default(false);
|
||||
$table->string('currency_unit', 10)->nullable();
|
||||
$table->boolean('currency_calc')->default(false);
|
||||
$table->decimal('currency_faktor', 4, 2)->nullable();
|
||||
|
||||
$table->boolean('active')->default(true);
|
||||
$table->text('trans_name')->nullable();
|
||||
$table->text('attr')->nullable();
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@ class CreateProductsTable extends Migration
|
|||
$table->unsignedTinyInteger('unit')->nullable();
|
||||
|
||||
$table->string('number')->nullable();
|
||||
$table->unsignedInteger('wp_number')->nullable();
|
||||
|
||||
$table->string('icons')->nullable(); //as array cast
|
||||
|
||||
$table->text('description')->nullable();
|
||||
|
|
|
|||
|
|
@ -52,10 +52,20 @@ class CreateShoppingUsersTable extends Migration
|
|||
$table->string('shipping_phone')->nullable();
|
||||
|
||||
$table->boolean('abo_options')->default(false);
|
||||
$table->boolean('has_buyed')->default(false);
|
||||
$table->boolean('subscribed')->default(false);
|
||||
|
||||
$table->text('notice')->default(false);
|
||||
|
||||
$table->char('mode', 4)->nullable();
|
||||
|
||||
$table->unsignedInteger('wp_order_number')->nullable();
|
||||
$table->timestamp('wp_order_date')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
$table->timestamp('user_deleted_at')->nullable();
|
||||
|
||||
|
||||
$table->foreign('billing_country_id')
|
||||
->references('id')
|
||||
|
|
|
|||
|
|
@ -40,8 +40,9 @@ class CreateShoppingOrdersTable extends Migration
|
|||
|
||||
$table->char('mode', 4)->nullable();
|
||||
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
$table->timestamp('user_deleted_at')->nullable();
|
||||
|
||||
$table->foreign('shopping_user_id')
|
||||
->references('id')
|
||||
|
|
@ -50,7 +51,7 @@ class CreateShoppingOrdersTable extends Migration
|
|||
|
||||
$table->foreign('country_id')
|
||||
->references('id')
|
||||
->on('countries');
|
||||
->on('shipping_countries');
|
||||
|
||||
$table->foreign('user_shop_id')
|
||||
->references('id')
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ class CreateShoppingOrderItemsTable extends Migration
|
|||
$table->string('slug')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
$table->timestamp('user_deleted_at')->nullable();
|
||||
|
||||
|
||||
$table->foreign('shopping_order_id')
|
||||
->references('id')
|
||||
|
|
|
|||
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCountryPricesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('country_prices', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->unsignedInteger('country_id')->index();
|
||||
$table->unsignedInteger('product_id')->index();
|
||||
|
||||
$table->decimal('c_price', 8, 2)->nullable();
|
||||
$table->decimal('c_tax', 5, 2)->nullable();
|
||||
$table->decimal('c_price_old', 8, 2)->nullable();
|
||||
|
||||
$table->decimal('c_currency', 8, 2)->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('country_id')
|
||||
->references('id')
|
||||
->on('countries');
|
||||
|
||||
$table->foreign('product_id')
|
||||
->references('id')
|
||||
->on('products');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('country_prices');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue