| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateGoodsSharesTable.
- */
- class CreateGoodsSharesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('goods_shares', function(Blueprint $table) {
- $table->increments('id');
- $table->integer('goods_id')->default(0)->index('goods_id')->comment('商品ID');
- $table->integer('m_id')->default(0)->index('m_id')->comment('会员ID');
- $table->string('share_img')->default('')->comment('分享二维码');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('goods_shares');
- }
- }
|