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