From 3867575c3afa43208f57faa352b62e3683ae6014 Mon Sep 17 00:00:00 2001 From: irisrb Date: Thu, 28 Apr 2022 20:47:11 +0200 Subject: [PATCH] added models --- models/product.class.php | 28 ++++++++++++++++++++++++++++ models/user.class.php | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 models/product.class.php create mode 100644 models/user.class.php diff --git a/models/product.class.php b/models/product.class.php new file mode 100644 index 0000000..fd39ac6 --- /dev/null +++ b/models/product.class.php @@ -0,0 +1,28 @@ +product_id = $product_id; + $this->name = $name; + $this->price = $price; + $this->description=$description; + $this->stock = $stock; + $this->weight=$weight; + $this->image = $image; + $this->category=$category; + $this->created_at=$created_at; + $this->category_name=$category_name; + $this->category_description=$category_description; + } +} \ No newline at end of file diff --git a/models/user.class.php b/models/user.class.php new file mode 100644 index 0000000..03453c6 --- /dev/null +++ b/models/user.class.php @@ -0,0 +1,32 @@ +user_id = $user_id; + $this->username = $username; + $this->password = $password; + $this->email=$email; + $this->firstname = $firstname; + $this->lastname=$lastname; + $this->role=$role; + $this->created_at=$created_at; + $this->street = $street; + $this->streetnumber=$streetnumber; + $this->postalcode=$postalcode; + $this->country = $country; + $this->phone=$phone; + } +} \ No newline at end of file