| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLoveVipTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('love_vip', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name',100)->comment('名称');
- $table->string('original',100)->nullable()->comment('原价格/描述');
- $table->decimal('money', 11, 2)->comment('价格');
- $table->decimal('ios_money', 11, 2)->default(0.00)->comment('ios价格');
- $table->unsignedInteger('day')->default(0)->comment('vip天数');
- $table->unsignedInteger('give_day')->default(0)->comment('赠送多少天vip');
- $table->unsignedInteger('give_rose')->default(0)->comment('赠送玫瑰数');
- $table->timestamps();
- $table->comment = 'vip套餐表';
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('love_vip');
- }
- }
|