2024_09_10_090034_create_coach_verify_table.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_verify', function (Blueprint $table) {
  12. $table->id();
  13. $table->string('name')->nullable()->comment('技师姓名');
  14. $table->bigInteger('user_id');
  15. $table->bigInteger('coach_id');
  16. $table->string('mobile')->nullable()->comment('手机号');
  17. $table->string('avatar')->nullable()->comment('头像');
  18. $table->tinyInteger('status')->default(0)->comment('状态');
  19. $table->tinyInteger('sex')->default(0)->nullable()->comment('用户性别');
  20. $table->bigInteger('work_time')->nullable()->comment('从业年份');
  21. $table->string('city_id')->nullable()->comment('城市');
  22. $table->string('lng')->nullable();
  23. $table->string('lat')->nullable();
  24. $table->string('address')->nullable()->comment('详细地址');
  25. $table->string('brief')->nullable()->comment('简介');
  26. $table->text('license')->nullable()->comment('执照');
  27. $table->string('work_img')->nullable()->comment('工作照');
  28. $table->string('self_img')->nullable()->comment('个人照');
  29. $table->integer('birthday')->nullable()->comment('出生日期');
  30. $table->text('verify_text')->nullable()->comment('审核意见');
  31. $table->timestamp('verify_time')->nullable()->comment('审核时间');
  32. $table->timestamps();
  33. });
  34. }
  35. /**
  36. * Reverse the migrations.
  37. */
  38. public function down(): void
  39. {
  40. Schema::dropIfExists('coach_verify');
  41. }
  42. };