From 2bf1ec6fdfa167963feb0a88c92740da1a1cb3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Tue, 8 Oct 2024 22:03:02 +0400 Subject: [PATCH] Initial commit --- .idea/.gitignore | 3 +++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ .idea/price-builder-backend.iml | 10 ++++++++++ .idea/vcs.xml | 6 ++++++ models/models.py | 13 +++++++++++++ 7 files changed, 50 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/price-builder-backend.iml create mode 100644 .idea/vcs.xml create mode 100644 models/models.py 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)