mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
large commit
This commit is contained in:
@@ -15,9 +15,10 @@ class CreateCompaniesTable extends Migration
|
||||
{
|
||||
Schema::create('companies', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name', 50);
|
||||
$table->string('name', 80);
|
||||
$table->string('marking', 80)->unique();
|
||||
$table->string('email', 80)->nullable();
|
||||
$table->string('wechat_id', 80)->nullable();
|
||||
$table->string('registration_no', 25)->nullable();
|
||||
$table->string('tax_no', 25)->nullable();
|
||||
$table->double('rate')->default(0);
|
||||
|
||||
@@ -20,6 +20,7 @@ class CreateOrdersTable extends Migration
|
||||
$table->string('forwarder_id')->nullable();
|
||||
$table->string('supplier_id')->nullable();
|
||||
$table->string('warehouse_id')->nullable();
|
||||
$table->string('address_id');
|
||||
$table->string('current_step')->nullable();
|
||||
$table->integer('complete')->default(0);
|
||||
$table->softDeletes();
|
||||
|
||||
@@ -20,6 +20,7 @@ class CreateOrderStepsTable extends Migration
|
||||
$table->integer('primary')->default(0);
|
||||
$table->decimal('sequence');
|
||||
$table->integer('complete')->default(0);
|
||||
$table->date('complete_date')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('order_id')->references('id')->on('orders');
|
||||
|
||||
@@ -17,7 +17,6 @@ class CreateReceiveNotesTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->integer('order_id')->unsigned()->index();
|
||||
$table->string('tracking_no');
|
||||
$table->date('receive_date');
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('order_id')->references('id')->on('orders');
|
||||
|
||||
@@ -15,9 +15,9 @@ class DatabaseSeeder extends Seeder
|
||||
$this->call(AddressBookTableSeeder::class);
|
||||
$this->call(ContactsTableSeeder::class);
|
||||
$this->call(WarehousesTableSeeder::class);
|
||||
$this->call(OrdersTableSeeder::class);
|
||||
$this->call(PackingListsTableSeeder::class);
|
||||
$this->call(PackagesTableSeeder::class);
|
||||
// $this->call(OrdersTableSeeder::class);
|
||||
// $this->call(PackingListsTableSeeder::class);
|
||||
// $this->call(PackagesTableSeeder::class);
|
||||
}
|
||||
|
||||
$this->call(PrimaryStepsTableSeeder::class);
|
||||
|
||||
Reference in New Issue
Block a user