MCPcopy
hub / github.com/Agenta-AI/agenta / OrganizationDB

Class OrganizationDB

api/oss/src/models/db_models.py:24–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class OrganizationDB(Base):
25 __tablename__ = "organizations"
26
27 id = Column(
28 UUID(as_uuid=True),
29 primary_key=True,
30 default=uuid.uuid7,
31 unique=True,
32 nullable=False,
33 )
34 name = Column(String, default="agenta")
35 description = Column(
36 String,
37 default="The open-source LLM developer platform for cross-functional teams.",
38 )
39 type = Column(String, nullable=True)
40 owner = Column(String, nullable=True) # TODO: deprecate and remove
41 created_at = Column(
42 DateTime(timezone=True), default=lambda: datetime.now(timezone.utc)
43 )
44 updated_at = Column(
45 DateTime(timezone=True), default=lambda: datetime.now(timezone.utc)
46 )
47
48 workspaces_relation = relationship(
49 "oss.src.models.db_models.WorkspaceDB", back_populates="organization"
50 )
51
52
53class WorkspaceDB(Base):

Callers 1

create_organizationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected