|
@@ -14,11 +14,15 @@ class CreateTableConfigProvince extends Migration
|
|
public function up()
|
|
public function up()
|
|
{
|
|
{
|
|
Schema::create('config_province', function (Blueprint $table) {
|
|
Schema::create('config_province', function (Blueprint $table) {
|
|
- $table->bigIncrements('id');
|
|
|
|
- $table->string('name',30); //名称
|
|
|
|
|
|
+ $table->bigIncrements('area_id');
|
|
|
|
+ $table->string('area_name',30); //名称
|
|
$table->integer('parent_id');//父级ID
|
|
$table->integer('parent_id');//父级ID
|
|
$table->integer('level');//级别
|
|
$table->integer('level');//级别
|
|
$table->tinyInteger('sort');//排序
|
|
$table->tinyInteger('sort');//排序
|
|
|
|
+ $table->string('area_code',50)->nullable()->comment('地区编码');
|
|
|
|
+ $table->string('city_code',50)->comment('城市编码');
|
|
|
|
+ $table->string('center',50)->comment('城市中心点(即:经纬度坐标)');
|
|
|
|
+ $table->integer('bjcity_id')->nullable()->comment('百度cityid');
|
|
$table->timestamps();
|
|
$table->timestamps();
|
|
});
|
|
});
|
|
}
|
|
}
|