2022_01_30_022920_create_fitting_rooms_table.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateFittingRoomsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('fitting_rooms', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('account_id')->default('0')->comment('账户ID');
  17. $table->integer('attire_id')->default('0')->comment('装扮ID');
  18. // $table->string('name')->default('')->comment('装扮名称');
  19. // $table->string('cate')->default('')->comment('类别');
  20. // $table->string('img_1')->default('')->comment('正面图片');
  21. // $table->string('img_2')->default('')->comment('背面图片');
  22. $table->integer('curr_save')->default('0')->comment('当前保存');
  23. $table->integer('curr_upload')->default('0')->comment('当前上传');
  24. $table->timestamps();
  25. });
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. Schema::dropIfExists('fitting_rooms');
  35. }
  36. }