Cocker Setup
This commit is contained in:
parent
fdb4aa7358
commit
8ccd81b770
184 changed files with 2115 additions and 13038 deletions
|
|
@ -1,29 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('shipments', function (Blueprint $t) {
|
||||
$t->id();
|
||||
$t->unsignedBigInteger('order_id')->nullable();
|
||||
$t->string('carrier')->default('dhl');
|
||||
$t->string('dhl_shipment_no')->nullable()->index();
|
||||
$t->string('product_code')->nullable();
|
||||
$t->string('billing_number')->nullable();
|
||||
$t->decimal('weight_kg', 8, 3)->nullable();
|
||||
$t->string('status')->default('created');
|
||||
$t->string('label_format')->nullable();
|
||||
$t->string('label_path')->nullable();
|
||||
$t->json('meta')->nullable();
|
||||
$t->timestamps();
|
||||
});
|
||||
}
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('shipments');
|
||||
}
|
||||
};
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('shipment_labels', function (Blueprint $t) {
|
||||
$t->id();
|
||||
$t->foreignId('shipment_id')->constrained('shipments')->cascadeOnDelete();
|
||||
$t->string('format')->default('PDF');
|
||||
$t->string('path');
|
||||
$t->timestamps();
|
||||
});
|
||||
}
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('shipment_labels');
|
||||
}
|
||||
};
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tracking_events', function (Blueprint $t) {
|
||||
$t->id();
|
||||
$t->foreignId('shipment_id')->constrained('shipments')->cascadeOnDelete();
|
||||
$t->string('status_code')->nullable();
|
||||
$t->string('status_text')->nullable();
|
||||
$t->string('location')->nullable();
|
||||
$t->timestamp('event_time')->nullable();
|
||||
$t->json('raw')->nullable();
|
||||
});
|
||||
}
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tracking_events');
|
||||
}
|
||||
};
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('return_labels', function (Blueprint $t) {
|
||||
$t->id();
|
||||
$t->unsignedBigInteger('order_id')->nullable()->index();
|
||||
$t->string('dhl_return_no')->nullable()->index();
|
||||
$t->string('label_path')->nullable();
|
||||
$t->timestamps();
|
||||
});
|
||||
}
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('return_labels');
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue