OwlCyberSecurity - MANAGER
Edit File: 2022_08_14_103102_create_logistics_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('logistics', function (Blueprint $table) { $table->id(); $table->string('orderId',255)->nullable(); $table->bigInteger('price'); $table->string('description', 255)->nullable(); $table->integer('base_id');//enum('basename', ['Opas','Dubai','Customer','MyUk','TehranOffice','SkyPax'])->nullable()->index(); $table->tinyInteger('iscancel')->nullable(); $table->enum('canceltype',['توسط ما','توسط فروشنده','کنسل نشده'])->nullable(); $table->string('cancelreason', 255)->unique(); $table->date('canceldate')->nullable(); $table->date('buyingdate')->nullable()->index(); $table->date('estimateddatetobase')->nullable(); $table->date('estimateddate')->nullable(); $table->date('deliverydate')->nullable(); $table->tinyInteger('issensitive')->nullable(); $table->string('tracknumber', 255)->nullable(); $table->string('officenumber', 255)->nullable(); $table->tinyInteger('isdeclare')->nullable(); $table->string('dubaitracknumber', 255)->nullable()->index(); $table->date('dubaiestimatedarivedate')->nullable(); $table->date('datearrivetodubai')->nullable(); $table->string('transporter', 255)->nullable(); $table->bigInteger('finalweight')->nullable(); $table->integer('width')->nullable(); $table->integer('height')->nullable(); $table->integer('length')->nullable(); $table->date('arrivedintehran')->nullable(); $table->tinyInteger('istransportedtocustomer')->nullable(); $table->tinyInteger('isdeliveredtocustomer')->nullable(); $table->enum('SentToCustomerBy',['حضوری','تیپاکس','پست','پیک','غیره'])->nullable(); $table->string('SendToCustomerTrackCode', 255)->nullable(); $table->bigInteger('SendToCustomerCost')->nullable(); $table->tinyInteger('isusethisprice')->nullable(); $table->enum('logisticstatus',['Normal','Transition','Cancel'])->nullable(); $table->integer('transitionreason');//enum('transitionreason', ['none', 'اتمام موجودی', 'ناقصی موجودی', 'افزایش قیمت کالا', 'شکست در مزایده', 'موجود نبودن کد رهگیری پستی', 'کنسلی ارسال توسط فروشنده', 'جعلی بودن کد رهگیری', 'تاخیر در رسیدن کالا', 'عدم پاسخگویی فروشنده', 'نامشخص', 'عدم تطابق مشخصات درخواستی با لینک', 'عدم امکان خرید از لینک مورد نظر', 'ناکافی بودن مشخصات خرید', 'کالا_ممنوعه'])->nullable(); $table->date('orderexpireddate')->nullable(); $table->enum('transitionmode',['Continue',' Processing','Cancel',' AgentPending'])->nullable(); $table->tinyInteger('istransitionaccesstocustomer')->nullable(); $table->string('TransitionMessage', 500)->nullable(); $table->tinyInteger('iswithouttracking')->nullable(); $table->tinyInteger('isrebuy')->nullable(); $table->bigInteger('carrier_id')->unsigned()->nullable(); $table->bigInteger('source_id')->unsigned()->nullable(); $table->bigInteger('account_id')->unsigned()->nullable(); $table->bigInteger('agent_id')->unsigned()->nullable(); $table->bigInteger('exchange_id')->unsigned()->nullable(); $table->bigInteger('invoice_id')->unsigned()->nullable(); $table->bigInteger('invoice_item_id')->unsigned()->nullable(); $table->bigInteger('account_discount')->unsigned()->nullable(); $table->string('sendPackNumber', 255)->nullable(); $table->date('estimatedDateToTehran')->nullable(); $table->bigInteger('contentWeight')->unsigned()->nullable(); $table->bigInteger('massweight')->unsigned()->nullable(); $table->bigInteger('transportprice')->unsigned()->nullable(); $table->bigInteger('Itemprice')->unsigned()->nullable(); $table->bigInteger('exchangevalue')->unsigned()->nullable(); $table->bigInteger('brokerwageprice')->unsigned()->nullable(); $table->bigInteger('singleItemfullprice')->unsigned()->nullable(); $table->bigInteger('finalTransportprice')->unsigned()->nullable(); $table->integer('old_id')->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('logistics'); } };