| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateRejectedsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('rejecteds', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->bigInteger('id_owner')->index();
- $table->string('order_number')->index()->nullable();
- $table->string('sender')->index()->nullable();
- $table->string('mobile_sender')->index()->nullable();
- $table->string('logistic_number')->index()->nullable();
- $table->string('logistic_number_return')->index();
- $table->bigInteger('id_logistic_return');
- $table->decimal('fee_collected')->nullable();
- $table->boolean('is_loaded')->default(false);
- $table->string('barcode_goods')->index()->nullable();
- $table->string('name_goods')->nullable();
- $table->integer('amount');
- $table->bigInteger('id_quality_label');
- $table->string('batch_number')->nullable();
- $table->date('validity_at')->nullable();
- $table->boolean('is_checked')->default(false);
- $table->string('remark')->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('rejecteds');
- }
- }
|