price-builder-backend/models/models.py

14 lines
372 B
Python
Raw Normal View History

2024-10-08 22:03:02 +04:00
from sqlalchemy import Column, Integer, String, Float
2024-10-08 22:27:17 +04:00
from database.database import Base
2024-10-08 22:03:02 +04:00
class Laptop(Base):
__tablename__ = "laptops"
id = Column(Integer, primary_key=True, index=True)
title = Column(String, index=True)
price = Column(Float)
processor = Column(String)
ram = Column(Integer)
ssd = Column(Integer)
display = Column(Float)