price-builder-backend/models/models.py
2024-10-13 16:53:07 +04:00

13 lines
346 B
Python

from sqlalchemy import Column, Integer, String, Float
from database import Base
class Laptop(Base):
__tablename__ = "laptops"
id = Column(Integer, primary_key=True, index=True)
processor = Column(String, index=True)
ram = Column(Integer)
os = Column(String, index=True)
ssd = Column(Integer)
display = Column(Float)