mirror of
https://github.com/olegvodyanov/docbot.git
synced 2025-12-20 08:07:04 +03:00
updates
This commit is contained in:
parent
174ddfd0ce
commit
547cac174d
@ -59,7 +59,7 @@ class SessionStatusHistory(Base):
|
|||||||
class Admins(Base):
|
class Admins(Base):
|
||||||
__tablename__ = "admins"
|
__tablename__ = "admins"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
telegram_id: Mapped[int] = mapped_column(unique=True, nullable=False)
|
telegram_id: Mapped[int] = mapped_column(unique=True, nullable=False)
|
||||||
created_at: Mapped[Optional[datetime]] = mapped_column(nullable=True)
|
created_at: Mapped[Optional[datetime]] = mapped_column(nullable=True)
|
||||||
available_payment_methods: Mapped[Optional[List[str]]] = mapped_column(
|
available_payment_methods: Mapped[Optional[List[str]]] = mapped_column(
|
||||||
@ -69,7 +69,7 @@ class Admins(Base):
|
|||||||
class Patients(Base):
|
class Patients(Base):
|
||||||
__tablename__ = "patients"
|
__tablename__ = "patients"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
telegram_id: Mapped[int] = mapped_column(unique=True, nullable=False)
|
telegram_id: Mapped[int] = mapped_column(unique=True, nullable=False)
|
||||||
phone: Mapped[Optional[str]] = mapped_column(nullable=True)
|
phone: Mapped[Optional[str]] = mapped_column(nullable=True)
|
||||||
created_at: Mapped[datetime] = mapped_column(nullable=False)
|
created_at: Mapped[datetime] = mapped_column(nullable=False)
|
||||||
@ -82,7 +82,7 @@ class Patients(Base):
|
|||||||
class Doctors(Base):
|
class Doctors(Base):
|
||||||
__tablename__ = "doctors"
|
__tablename__ = "doctors"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
telegram_id: Mapped[int] = mapped_column(unique=True, nullable=False)
|
telegram_id: Mapped[int] = mapped_column(unique=True, nullable=False)
|
||||||
name: Mapped[str] = mapped_column(nullable=False)
|
name: Mapped[str] = mapped_column(nullable=False)
|
||||||
available_formats: Mapped[Optional[List[str]]
|
available_formats: Mapped[Optional[List[str]]
|
||||||
@ -112,7 +112,7 @@ class Doctors(Base):
|
|||||||
class ReferralCode(Base):
|
class ReferralCode(Base):
|
||||||
__tablename__ = "referral_codes"
|
__tablename__ = "referral_codes"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
code: Mapped[str] = mapped_column(unique=True, nullable=False)
|
code: Mapped[str] = mapped_column(unique=True, nullable=False)
|
||||||
is_used: Mapped[bool] = mapped_column(default=False, nullable=False)
|
is_used: Mapped[bool] = mapped_column(default=False, nullable=False)
|
||||||
created_at: Mapped[datetime] = mapped_column(nullable=False)
|
created_at: Mapped[datetime] = mapped_column(nullable=False)
|
||||||
@ -127,7 +127,7 @@ class ReferralCode(Base):
|
|||||||
class VerificationRequests(Base):
|
class VerificationRequests(Base):
|
||||||
__tablename__ = "verification_requests"
|
__tablename__ = "verification_requests"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
doctor_id: Mapped[int] = mapped_column(
|
doctor_id: Mapped[int] = mapped_column(
|
||||||
ForeignKey("doctors.id", ondelete="CASCADE"), unique=True, nullable=False)
|
ForeignKey("doctors.id", ondelete="CASCADE"), unique=True, nullable=False)
|
||||||
code: Mapped[str] = mapped_column(unique=True, nullable=False)
|
code: Mapped[str] = mapped_column(unique=True, nullable=False)
|
||||||
@ -145,7 +145,7 @@ class VerificationRequests(Base):
|
|||||||
class FormLink(Base):
|
class FormLink(Base):
|
||||||
__tablename__ = "form_links"
|
__tablename__ = "form_links"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
doctor_id: Mapped[int] = mapped_column(
|
doctor_id: Mapped[int] = mapped_column(
|
||||||
ForeignKey("doctors.id", ondelete="CASCADE"), unique=True, nullable=False)
|
ForeignKey("doctors.id", ondelete="CASCADE"), unique=True, nullable=False)
|
||||||
url: Mapped[str] = mapped_column(nullable=False)
|
url: Mapped[str] = mapped_column(nullable=False)
|
||||||
@ -159,7 +159,7 @@ class FormLink(Base):
|
|||||||
class PaymentMethod(Base):
|
class PaymentMethod(Base):
|
||||||
__tablename__ = "payment_methods"
|
__tablename__ = "payment_methods"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
doctor_id: Mapped[int] = mapped_column(
|
doctor_id: Mapped[int] = mapped_column(
|
||||||
ForeignKey("doctors.id", ondelete="CASCADE"), unique=True, nullable=False)
|
ForeignKey("doctors.id", ondelete="CASCADE"), unique=True, nullable=False)
|
||||||
method: Mapped[str] = mapped_column(nullable=False)
|
method: Mapped[str] = mapped_column(nullable=False)
|
||||||
|
|||||||
@ -31,7 +31,7 @@ SEND_ME_YOUR_FULL_NAME_TEXT = (
|
|||||||
"📝 Пожалуйста, введите ФИО."
|
"📝 Пожалуйста, введите ФИО."
|
||||||
)
|
)
|
||||||
SEND_ME_YOUR_SPECIALITY_TEXT = (
|
SEND_ME_YOUR_SPECIALITY_TEXT = (
|
||||||
"📝 Пожалуйста, введите вашу специальность/специальности, в соответствии с которой планируете проводить консультации.\n
|
"📝 Пожалуйста, введите вашу специальность/специальности, в соответствии с которой планируете проводить консультации.\n"
|
||||||
"Например: терапевт, кардиолог, невролог и т.д."
|
"Например: терапевт, кардиолог, невролог и т.д."
|
||||||
)
|
)
|
||||||
WAIT_FOR_ACTIVATION_TEXT = (
|
WAIT_FOR_ACTIVATION_TEXT = (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user