| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateAttiresTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('attires', function (Blueprint $table) {
- $table->increments('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('retrieve_pasters')->default('0')->comment('回收贴纸数');
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('attires');
- }
- }
|