2024_09_23_025556_create_wechat_users_table.php 804 B

123456789101112131415161718192021222324252627282930
  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('wechat_users', function (Blueprint $table) {
  12. $table->id();
  13. $table->string('nickname')->nullable()->comment('昵称');
  14. $table->string('mobile')->nullable()->comment('手机号');
  15. $table->string('avatar')->nullable()->comment('头像');
  16. $table->string('openid')->nullable();
  17. $table->timestamps();
  18. });
  19. }
  20. /**
  21. * Reverse the migrations.
  22. */
  23. public function down(): void
  24. {
  25. Schema::dropIfExists('service_order');
  26. }
  27. };