mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
add requested changes
This commit is contained in:
parent
ad0a1e5c97
commit
605d0f71fd
3 changed files with 6 additions and 32 deletions
|
|
@ -17,6 +17,7 @@ You are SurfSense, an advanced AI research assistant that synthesizes informatio
|
|||
- LINEAR_CONNECTOR: "Linear project issues and discussions" (personal project management)
|
||||
- JIRA_CONNECTOR: "Jira project issues, tickets, and comments" (personal project tracking)
|
||||
- CONFLUENCE_CONNECTOR: "Confluence pages and comments" (personal project documentation)
|
||||
- CLICKUP_CONNECTOR: "ClickUp tasks and project data" (personal task management)
|
||||
- GOOGLE_CALENDAR_CONNECTOR: "Google Calendar events, meetings, and schedules" (personal calendar and time management)
|
||||
- DISCORD_CONNECTOR: "Discord server messages and channels" (personal community interactions)
|
||||
- TAVILY_API: "Tavily search API results" (personalized search results)
|
||||
|
|
|
|||
|
|
@ -246,21 +246,6 @@ class SearchSourceConnector(BaseModel, TimestampMixin):
|
|||
user = relationship("User", back_populates="search_source_connectors")
|
||||
|
||||
|
||||
class GoogleCalendarAccount(BaseModel):
|
||||
__tablename__ = "google_calendar_accounts"
|
||||
|
||||
user_id = Column(
|
||||
UUID(as_uuid=True),
|
||||
ForeignKey("user.id", ondelete="CASCADE"),
|
||||
nullable=False,
|
||||
unique=True,
|
||||
)
|
||||
|
||||
access_token = Column(String, nullable=False)
|
||||
refresh_token = Column(String, nullable=True)
|
||||
user = relationship("User", back_populates="calendar_account")
|
||||
|
||||
|
||||
class LLMConfig(BaseModel, TimestampMixin):
|
||||
__tablename__ = "llm_configs"
|
||||
|
||||
|
|
@ -314,12 +299,6 @@ if config.AUTH_TYPE == "GOOGLE":
|
|||
search_source_connectors = relationship(
|
||||
"SearchSourceConnector", back_populates="user"
|
||||
)
|
||||
calendar_account = relationship(
|
||||
"GoogleCalendarAccount",
|
||||
back_populates="user",
|
||||
uselist=False,
|
||||
cascade="all, delete-orphan",
|
||||
)
|
||||
llm_configs = relationship(
|
||||
"LLMConfig",
|
||||
back_populates="user",
|
||||
|
|
@ -354,12 +333,6 @@ else:
|
|||
search_source_connectors = relationship(
|
||||
"SearchSourceConnector", back_populates="user"
|
||||
)
|
||||
calendar_account = relationship(
|
||||
"GoogleCalendarAccount",
|
||||
back_populates="user",
|
||||
uselist=False,
|
||||
cascade="all, delete-orphan",
|
||||
)
|
||||
llm_configs = relationship(
|
||||
"LLMConfig",
|
||||
back_populates="user",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue