2021_10_16_113818_create_qr_codes_table.php 735 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateQrCodesTable.
  6. */
  7. class CreateQrCodesTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('qr_codes', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->tinyInteger('code_type')->comment('二维码类型');
  19. $table->string('code_title')->comment('二维码类型名称');
  20. $table->string('code_img')->comment('二维码图片');
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::drop('qr_codes');
  32. }
  33. }