fix(backend): remove PII-exposing fields from public waitlist model

Remove `owner` (User type) and `storeListing` (StoreListingWithVersions)
fields from StoreWaitlistEntry. These fields were never populated but
exposed PII types (email, stripe_customer_id, etc.) in the OpenAPI schema.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Nicholas Tindle
2026-01-12 14:52:51 -06:00
parent 738c7e2bef
commit 20fe2c3877

View File

@@ -4,7 +4,6 @@ from typing import List
import prisma.enums
import pydantic
from backend.data.model import User
from backend.util.models import Pagination
@@ -220,9 +219,9 @@ class ReviewSubmissionRequest(pydantic.BaseModel):
class StoreWaitlistEntry(pydantic.BaseModel):
"""Public waitlist entry - no PII fields exposed."""
waitlistId: str
storeListing: StoreListingWithVersions | None = None
owner: User | None = None
slug: str
# Content fields