2019_04_23_071015_create_table_config_province.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateTableConfigProvince extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('config_province', function (Blueprint $table) {
  15. $table->bigIncrements('area_id');
  16. $table->string('area_name',30); //名称
  17. $table->integer('parent_id');//父级ID
  18. $table->integer('level');//级别
  19. $table->tinyInteger('sort');//排序
  20. $table->string('area_code',6)->nullable()->comment('地区编码');
  21. $table->string('center',50)->comment('城市中心点(即:经纬度坐标)');
  22. $table->integer('bjcity_id')->nullable()->comment('百度cityid');
  23. $table->timestamps();
  24. });
  25. }
  26. /**
  27. * Reverse the migrations.
  28. *
  29. * @return void
  30. */
  31. public function down()
  32. {
  33. Schema::dropIfExists('config_province');
  34. }
  35. }