12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- return new class extends Migration {
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('coach_site', function (Blueprint $table) {
- $table->id();
- $table->bigInteger('coach_id')->comment('技师ID');
- $table->string('longitude')->comment('经度');
- $table->string('latitude')->comment('纬度');
- $table->string('nation_code')->nullable()->comment('');
- $table->string('city_code')->nullable()->comment('');
- $table->string('province')->nullable()->comment('省');
- $table->string('city')->nullable()->comment('省');
- $table->string('district')->nullable()->comment('省');
- $table->string('street')->nullable()->comment('街道');
- $table->string('street_number')->nullable()->comment('街道号码');
- $table->string('adcode')->nullable()->comment('城市编码');
- $table->string('district_code')->nullable()->comment('地区编码');
- $table->string('phone_area_code')->nullable()->comment('电话区号');
- $table->string('address')->nullable()->comment('地址');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('coach_site');
- }
- };
|