2024_09_30_025556_create_coach_site_table.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration {
  6. /**
  7. * Run the migrations.
  8. */
  9. public function up(): void
  10. {
  11. Schema::create('coach_site', function (Blueprint $table) {
  12. $table->id();
  13. $table->bigInteger('coach_id')->comment('技师ID');
  14. $table->string('longitude')->comment('经度');
  15. $table->string('latitude')->comment('纬度');
  16. $table->string('nation_code')->nullable()->comment('');
  17. $table->string('city_code')->nullable()->comment('');
  18. $table->string('province')->nullable()->comment('省');
  19. $table->string('city')->nullable()->comment('省');
  20. $table->string('district')->nullable()->comment('省');
  21. $table->string('street')->nullable()->comment('街道');
  22. $table->string('street_number')->nullable()->comment('街道号码');
  23. $table->string('adcode')->nullable()->comment('城市编码');
  24. $table->string('district_code')->nullable()->comment('地区编码');
  25. $table->string('phone_area_code')->nullable()->comment('电话区号');
  26. $table->string('address')->nullable()->comment('地址');
  27. $table->timestamps();
  28. });
  29. }
  30. /**
  31. * Reverse the migrations.
  32. */
  33. public function down(): void
  34. {
  35. Schema::dropIfExists('coach_site');
  36. }
  37. };