| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLoveGiftsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('love_gifts', function (Blueprint $table) {
- $table->increments('id');
- $table->softDeletes();
- $table->string('name',100)->comment('标题');
- $table->string('file',100)->nullable()->comment('图片');
- $table->string('svga',100)->nullable()->comment('动画');
- $table->tinyInteger('type')->default(0)->comment('0普通礼物1VIP礼物');
- $table->tinyInteger('size')->default(1)->comment('动画显示次数');
- $table->tinyInteger('sort')->default(1)->comment('排序');
- $table->unsignedInteger('rose')->default(0)->comment('多少玫瑰');
- $table->timestamps();
- $table->comment = '礼物表';
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('love_gifts');
- }
- }
|