2021_06_18_150129_create_terminal_printers_table.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreateTerminalPrintersTable extends Migration
  6. {
  7. // private $parent_name = '打印机';
  8. //
  9. // private $names = [
  10. // '打印机-添加' => '基础设置-快递打印-打印机-添加',
  11. // '打印机-编辑' => '基础设置-快递打印-打印机-编辑',
  12. // '打印机-删除' => '基础设置-快递打印-打印机-删除',
  13. // ];
  14. /**
  15. * Run the migrations.
  16. *
  17. * @return void
  18. */
  19. public function up()
  20. {
  21. Schema::create('terminal_printers', function (Blueprint $table) {
  22. $table->id();
  23. $table->string('terminal_id')->comment('终端id');
  24. $table->string('printer_name')->comment('打印机名称');
  25. $table->string('alias_name')->comment('打印机别名');
  26. $table->tinyInteger('logistic_id')->comment('快递');
  27. $table->timestamps();
  28. });
  29. }
  30. /**
  31. * Reverse the migrations.
  32. *
  33. * @return void
  34. */
  35. public function down()
  36. {
  37. Schema::dropIfExists('terminal_printers');
  38. }
  39. }