diff --git a/backend/migrations/2025_12_10_105639_update_orders_add_buyer_user_id.php b/backend/migrations/2025_12_10_105639_update_orders_add_buyer_user_id.php new file mode 100644 index 0000000..6a57f0a --- /dev/null +++ b/backend/migrations/2025_12_10_105639_update_orders_add_buyer_user_id.php @@ -0,0 +1,28 @@ +text('buyer_user_id')->nullable()->default(null)->comment('平台买家 id'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('orders', function (Blueprint $table) { + $table->dropColumn('buyer_user_id'); + }); + } +};