Buckets:

download
raw
548 Bytes
from fastapi_fullauth.models.beanie import (
RefreshTokenDocument,
RoleDocument,
UserDocument,
)
class Role(RoleDocument):
pass
class RefreshToken(RefreshTokenDocument):
pass
class User(UserDocument):
# Roles are an embedded array on the user document (no join collection), so
# only role_model is passed to the adapter. Add your own fields freely.
display_name: str = ""
phone: str = ""
# Register every document with init_beanie() at startup (see main.py).
DOCUMENT_MODELS = [User, RefreshToken, Role]

Xet Storage Details

Size:
548 Bytes
·
Xet hash:
151476c8eba3d7d4b053528d10e5f1264e0be8749d12792006139c8032ec7182

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.