large commit

This commit is contained in:
Omair Saleh
2019-05-18 12:14:31 +08:00
parent bfcbe76049
commit 43a9e0ca03
94 changed files with 1553 additions and 1130 deletions
@@ -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');
+3 -3
View File
@@ -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);