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