commit 2bf1ec6fdfa167963feb0a88c92740da1a1cb3a9 Author: Артём Алейкин Date: Tue Oct 8 22:03:02 2024 +0400 Initial commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a6fa933 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..6fef07b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/price-builder-backend.iml b/.idea/price-builder-backend.iml new file mode 100644 index 0000000..9e6c4ca --- /dev/null +++ b/.idea/price-builder-backend.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/models/models.py b/models/models.py new file mode 100644 index 0000000..7a507a1 --- /dev/null +++ b/models/models.py @@ -0,0 +1,13 @@ +from sqlalchemy import Column, Integer, String, Float +from database import Base + +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)