SurfSense/surfsense_backend/app/schemas/users.py
DESKTOP-RTLN3BA\$punk a7407502d3 feat(refactor): refactor payment system to implement unified credit wallet.
- Updated environment variables and - configurations for credit purchases via Stripe, replacing legacy page pack system.
- Introduced auto-reload feature for credit top-ups and modified database models to track credit transactions.
- Updated notification system to handle insufficient credits and auto-reload failures.
- Adjusted API routes and schemas to reflect changes in credit management.
2026-06-10 16:49:03 -07:00

18 lines
362 B
Python

import uuid
from fastapi_users import schemas
class UserRead(schemas.BaseUser[uuid.UUID]):
credit_micros_balance: int
display_name: str | None = None
avatar_url: str | None = None
class UserCreate(schemas.BaseUserCreate):
pass
class UserUpdate(schemas.BaseUserUpdate):
display_name: str | None = None
avatar_url: str | None = None