|
|
|
|
|
|
|
|
return tenant |
|
|
return tenant |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Conversation(Base): |
|
|
|
|
|
|
|
|
class Conversation(db.Model): # type: ignore[name-defined] |
|
|
__tablename__ = "conversations" |
|
|
__tablename__ = "conversations" |
|
|
__table_args__ = ( |
|
|
__table_args__ = ( |
|
|
db.PrimaryKeyConstraint("id", name="conversation_pkey"), |
|
|
db.PrimaryKeyConstraint("id", name="conversation_pkey"), |
|
|
|
|
|
|
|
|
return self.override_model_configs is not None |
|
|
return self.override_model_configs is not None |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Message(Base): |
|
|
|
|
|
|
|
|
class Message(db.Model): # type: ignore[name-defined] |
|
|
__tablename__ = "messages" |
|
|
__tablename__ = "messages" |
|
|
__table_args__ = ( |
|
|
__table_args__ = ( |
|
|
PrimaryKeyConstraint("id", name="message_pkey"), |
|
|
PrimaryKeyConstraint("id", name="message_pkey"), |
|
|
|
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MessageFeedback(Base): |
|
|
|
|
|
|
|
|
class MessageFeedback(db.Model): # type: ignore[name-defined] |
|
|
__tablename__ = "message_feedbacks" |
|
|
__tablename__ = "message_feedbacks" |
|
|
__table_args__ = ( |
|
|
__table_args__ = ( |
|
|
db.PrimaryKeyConstraint("id", name="message_feedback_pkey"), |
|
|
db.PrimaryKeyConstraint("id", name="message_feedback_pkey"), |
|
|
|
|
|
|
|
|
return account |
|
|
return account |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MessageFile(Base): |
|
|
|
|
|
|
|
|
class MessageFile(db.Model): # type: ignore[name-defined] |
|
|
__tablename__ = "message_files" |
|
|
__tablename__ = "message_files" |
|
|
__table_args__ = ( |
|
|
__table_args__ = ( |
|
|
db.PrimaryKeyConstraint("id", name="message_file_pkey"), |
|
|
db.PrimaryKeyConstraint("id", name="message_file_pkey"), |
|
|
|
|
|
|
|
|
created_at: Mapped[datetime] = db.Column(db.DateTime, nullable=False, server_default=func.current_timestamp()) |
|
|
created_at: Mapped[datetime] = db.Column(db.DateTime, nullable=False, server_default=func.current_timestamp()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MessageAnnotation(Base): |
|
|
|
|
|
|
|
|
class MessageAnnotation(db.Model): # type: ignore[name-defined] |
|
|
__tablename__ = "message_annotations" |
|
|
__tablename__ = "message_annotations" |
|
|
__table_args__ = ( |
|
|
__table_args__ = ( |
|
|
db.PrimaryKeyConstraint("id", name="message_annotation_pkey"), |
|
|
db.PrimaryKeyConstraint("id", name="message_annotation_pkey"), |
|
|
|
|
|
|
|
|
return account |
|
|
return account |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AppAnnotationSetting(Base): |
|
|
|
|
|
|
|
|
class AppAnnotationSetting(db.Model): # type: ignore[name-defined] |
|
|
__tablename__ = "app_annotation_settings" |
|
|
__tablename__ = "app_annotation_settings" |
|
|
__table_args__ = ( |
|
|
__table_args__ = ( |
|
|
db.PrimaryKeyConstraint("id", name="app_annotation_settings_pkey"), |
|
|
db.PrimaryKeyConstraint("id", name="app_annotation_settings_pkey"), |