feat: Add ORM for organization model (#1914)

This commit is contained in:
Matthew Zhou
2024-10-22 14:47:09 -07:00
committed by GitHub
parent a2e1cfd9e5
commit 1be576a28e
23 changed files with 541 additions and 248 deletions

View File

@@ -7,13 +7,13 @@ from letta.schemas.letta_base import LettaBase
class OrganizationBase(LettaBase):
__id_prefix__ = "org"
__id_prefix__ = "organization"
class Organization(OrganizationBase):
id: str = OrganizationBase.generate_id_field()
id: str = Field(..., description="The id of the organization.")
name: str = Field(..., description="The name of the organization.")
created_at: datetime = Field(default_factory=datetime.utcnow, description="The creation date of the user.")
created_at: datetime = Field(default_factory=datetime.utcnow, description="The creation date of the organization.")
class OrganizationCreate(OrganizationBase):