mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-23 21:22:35 +03:00
ba123fe716
* fix(shareBrain): prevent access duplication in db * feat: remove unused function * fix(linter): update types
16 lines
272 B
Python
16 lines
272 B
Python
from uuid import UUID
|
|
|
|
from logger import get_logger
|
|
from pydantic import BaseModel
|
|
|
|
logger = get_logger(__name__)
|
|
|
|
|
|
class BrainSubscription(BaseModel):
|
|
brain_id: UUID
|
|
email: str
|
|
rights: str = "Viewer"
|
|
|
|
class Config:
|
|
arbitrary_types_allowed = True
|