10 lines
277 B
Python
10 lines
277 B
Python
from sqlalchemy import Column, Integer, String
|
|
from .base import Base
|
|
|
|
class Hospital(Base):
|
|
__tablename__ = "hospitals"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
name = Column(String(255), nullable=False)
|
|
address = Column(String(500), nullable=True)
|