|
@@ -1,46 +0,0 @@
|
|
|
-<?php
|
|
|
-
|
|
|
-use Illuminate\Support\Facades\Schema;
|
|
|
-use Illuminate\Database\Schema\Blueprint;
|
|
|
-use Illuminate\Database\Migrations\Migration;
|
|
|
-
|
|
|
-class CreateMemberExpressAddress extends Migration
|
|
|
-{
|
|
|
- /**
|
|
|
- * Run the migrations.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function up()
|
|
|
- {
|
|
|
- Schema::create('member_express_address', function (Blueprint $table) {
|
|
|
- $table->bigIncrements('id');
|
|
|
- $table->integer('uid')->comment('用户uid');
|
|
|
- $table->string('contact_name',50)->nullable()->default('')->comment('收货人名称');
|
|
|
- $table->string('contact_mobile',11)->nullable()->default('')->comment('联系电话');
|
|
|
- $table->integer('province_id')->default(0)->comment('省份id');
|
|
|
- $table->string('province_name',50)->default('')->comment('省份名称');
|
|
|
- $table->integer('city_id')->comment('城市id');
|
|
|
- $table->string('city_name',50)->comment('城市名称');
|
|
|
- $table->integer('area_id')->default(0)->comment('区id');
|
|
|
- $table->string('area_name',50)->nullable()->default('')->comment('区名称');
|
|
|
- $table->string('address')->nullable()->comment('详细地址');
|
|
|
- $table->tinyInteger('is_default')->default(0)->comment('是否默认地址 1默认 0非默认');
|
|
|
- $table->tinyInteger('address_type')->default(0)->comment('地址类型 1快递,2自提');
|
|
|
- $table->integer('pickup_node_id')->nullable()->default(0)->comment('自提点id');
|
|
|
- $table->integer('zipcode')->default(0)->nullable()->comment('邮政编码');
|
|
|
- $table->timestamps();
|
|
|
- $table->softDeletes();
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Reverse the migrations.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function down()
|
|
|
- {
|
|
|
- Schema::dropIfExists('member_express_address');
|
|
|
- }
|
|
|
-}
|