price-builder-backend/models/models.py

20 lines
566 B
Python
Raw Permalink Normal View History

from sqlalchemy import Column, Integer, Float, String
from database import Base
2024-10-08 22:03:02 +04:00
2024-10-08 22:03:02 +04:00
class Laptop(Base):
__tablename__ = "laptops"
id = Column(Integer, primary_key=True, index=True)
brand = Column(String, index=True)
2024-10-13 16:53:07 +04:00
processor = Column(String, index=True)
2024-10-08 22:03:02 +04:00
ram = Column(Integer)
2024-10-13 16:53:07 +04:00
os = Column(String, index=True)
2024-10-08 22:03:02 +04:00
ssd = Column(Integer)
display = Column(Float)
gpu = Column(String, index=True)
weight = Column(Float)
battery_size = Column(Integer)
release_year = Column(Integer)
display_type = Column(String, index=True)