2019_10_21_175759_create_rejecteds_table.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateRejectedsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('rejecteds', function (Blueprint $table) {
  15. $table->bigIncrements('id');
  16. $table->bigInteger('id_owner')->index();
  17. $table->string('order_number')->index()->nullable();
  18. $table->string('sender')->index()->nullable();
  19. $table->string('mobile_sender')->index()->nullable();
  20. $table->string('logistic_number')->index()->nullable();
  21. $table->string('logistic_number_return')->index();
  22. $table->bigInteger('id_logistic_return');
  23. $table->decimal('fee_collected')->nullable();
  24. $table->boolean('is_loaded')->default(false);
  25. $table->string('barcode_goods')->index()->nullable();
  26. $table->string('name_goods')->nullable();
  27. $table->integer('amount');
  28. $table->bigInteger('id_quality_label');
  29. $table->string('batch_number')->nullable();
  30. $table->date('validity_at')->nullable();
  31. $table->boolean('is_checked')->default(false);
  32. $table->string('remark')->nullable();
  33. $table->timestamps();
  34. });
  35. }
  36. /**
  37. * Reverse the migrations.
  38. *
  39. * @return void
  40. */
  41. public function down()
  42. {
  43. Schema::dropIfExists('rejecteds');
  44. }
  45. }