python-webservice/models.py

13 lines
302 B
Python
Raw Normal View History

2022-10-14 17:52:31 +00:00
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)