17 lines
490 B
Python
17 lines
490 B
Python
from sqlalchemy import Column, Integer, String, ForeignKey
|
|
from sqlalchemy.orm import relationship
|
|
|
|
from database import Base
|
|
from .CustomBase import CustomBase
|
|
|
|
|
|
class Calenders(Base, CustomBase):
|
|
__tablename__ = "calenders"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
doc_id = Column(Integer, ForeignKey("doctors.id"), nullable=False, index=True)
|
|
# rrule = Column(String)
|
|
time = Column(String)
|
|
|
|
doctor = relationship("Doctors", back_populates="calendars")
|