update configuration docker setup for data platform
This commit is contained in:
@@ -46,6 +46,25 @@ class RawWaitingTime(Base):
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False, server_default=func.now())
|
||||
|
||||
|
||||
class PatientAppointment(Base):
|
||||
__tablename__ = "patient_appointment"
|
||||
__table_args__ = (
|
||||
UniqueConstraint("hn", "date", "time", name="uq_patient_appointment_hn_date_time"),
|
||||
{"schema": "rawdata"},
|
||||
)
|
||||
|
||||
id: Mapped[int] = mapped_column(BigInteger, primary_key=True, autoincrement=True)
|
||||
hn: Mapped[str] = mapped_column(String(50), nullable=False)
|
||||
txn: Mapped[int | None] = mapped_column(BigInteger, nullable=True)
|
||||
date: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False)
|
||||
time: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False)
|
||||
doctor_code: Mapped[str | None] = mapped_column(String(50), nullable=True)
|
||||
period: Mapped[str | None] = mapped_column(String(50), nullable=True)
|
||||
appointment_type: Mapped[str | None] = mapped_column(String(100), nullable=True)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False, server_default=func.now())
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False, server_default=func.now())
|
||||
|
||||
|
||||
class ApiClient(Base):
|
||||
__tablename__ = "api_client"
|
||||
__table_args__ = {"schema": "fastapi"}
|
||||
|
||||
Reference in New Issue
Block a user