mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-18 03:41:44 +03:00
17 lines
243 B
Python
17 lines
243 B
Python
|
from uuid import UUID
|
||
|
|
||
|
from pydantic import BaseModel
|
||
|
|
||
|
|
||
|
class FileInStorage(BaseModel):
|
||
|
Id: UUID
|
||
|
Key: str
|
||
|
|
||
|
@property
|
||
|
def id(self) -> UUID:
|
||
|
return self.Id
|
||
|
|
||
|
@property
|
||
|
def key(self) -> str:
|
||
|
return self.Key
|