<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateMemberAddress extends Migration { public function up() { Schema::create('member_address', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('userId')->nullable()->comment('用户ID'); $onV5E->string('name', 20)->nullable()->comment('姓名'); $onV5E->string('phone', 20)->nullable()->comment('手机号'); $onV5E->string('area', 100)->nullable()->comment('省市地区'); $onV5E->string('detail', 200)->nullable()->comment('详细地址'); $onV5E->string('post', 20)->nullable()->comment('邮政编码'); $onV5E->tinyInteger('isDefault')->nullable()->comment('默认'); $onV5E->index(array('userId')); }); } public function down() { } }