| 22 | |
| 23 | |
| 24 | class 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 | |
| 53 | class WorkspaceDB(Base): |
no outgoing calls
no test coverage detected