| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateFittingRoomsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('fitting_rooms', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('account_id')->default('0')->comment('账户ID');
- $table->integer('attire_id')->default('0')->comment('装扮ID');
- // $table->string('name')->default('')->comment('装扮名称');
- // $table->string('cate')->default('')->comment('类别');
- // $table->string('img_1')->default('')->comment('正面图片');
- // $table->string('img_2')->default('')->comment('背面图片');
- $table->integer('curr_save')->default('0')->comment('当前保存');
- $table->integer('curr_upload')->default('0')->comment('当前上传');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('fitting_rooms');
- }
- }
|