mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-14 20:55:15 +02:00
- 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.
18 lines
362 B
Python
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
|