<?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 $tM63P) { $tM63P->increments('id'); $tM63P->timestamps(); $tM63P->integer('userId')->nullable()->comment('用户ID'); $tM63P->string('name', 20)->nullable()->comment('姓名'); $tM63P->string('phone', 20)->nullable()->comment('手机号'); $tM63P->string('area', 100)->nullable()->comment('省市地区'); $tM63P->string('detail', 200)->nullable()->comment('详细地址'); $tM63P->string('post', 20)->nullable()->comment('邮政编码'); $tM63P->tinyInteger('isDefault')->nullable()->comment('默认'); $tM63P->index(array('userId')); }); } public function down() { } }