<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateOrderGoods extends Migration { public function up() { Schema::create('order_goods', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('orderId')->nullable()->comment('订单ID'); $onV5E->integer('memberUserId')->nullable()->comment('用户ID'); $onV5E->integer('goodsId')->nullable()->comment('商品ID'); $onV5E->integer('goodsSnapshotId')->nullable()->comment('商品快照ID'); $onV5E->integer('amount')->nullable()->comment('数量'); $onV5E->string('remark', 400)->nullable()->comment('商品备注'); $onV5E->index('orderId'); $onV5E->index('memberUserId'); }); } public function down() { } }