python-webservice/models.py
2022-10-14 13:52:31 -04:00

13 lines
302 B
Python

from sqlalchemy.schema import Column
from sqlalchemy.types import String, Integer, Float
from database import Base
class Album(Base):
__tablename__ = "albums"
id = Column(Integer, primary_key=True, index=True)
title = Column(String)
artist = Column(String)
price = Column(Float)