{"id":81,"date":"2020-01-17T01:15:25","date_gmt":"2020-01-16T18:15:25","guid":{"rendered":"http:\/\/beauty27.blog.binusian.org\/?p=81"},"modified":"2020-04-09T19:37:50","modified_gmt":"2020-04-09T12:37:50","slug":"documentation","status":"publish","type":"post","link":"https:\/\/beauty27.blog.binusian.org\/?p=81","title":{"rendered":"Documentation"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/beautytasara27\/Database-Project-Online-shop\">https:\/\/github.com\/beautytasara27\/Database-Project-Online-shop<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Problem Description<\/h3>\n\n\n\n<p>Our project is an online shop that sells makeup . The basic idea is that people can buy products without having to physically go to shops or malls and they can get other additional information like tutorials on how to use the products they buy without exhausting searches on google. Real life examples include Sephora, Ulta.&nbsp;<br><\/p>\n\n\n\n<p>There are four different types of users that can access the system and they all have different interfaces specific to their needs.<br><\/p>\n\n\n\n<p><strong>Customers<\/strong><\/p>\n\n\n\n<p>They can browse through the products available in the shop, choose the products the want and make a purchase.<br><\/p>\n\n\n\n<p><strong>Influencer<\/strong><\/p>\n\n\n\n<p>They can browse through products , choose a product they want to promote and create tutorials and tips.<br><\/p>\n\n\n\n<p><strong>Brand Ambassador<\/strong><\/p>\n\n\n\n<p>They manage products specific to their brand, they can add new product as well as delete the product specified. They can also recommend tutorials for their products.<br><\/p>\n\n\n\n<p><strong>Admin<\/strong><\/p>\n\n\n\n<p>Manages all the users, products, brands, tutorials. Basically they can see all the data in the database .<br><\/p>\n\n\n\n<p><strong>Team Roles<\/strong><\/p>\n\n\n\n<p>Beauty Tatenda Tasara&nbsp; <strong>2201849402<\/strong><\/p>\n\n\n\n<p>Designing the database and documentation<br><\/p>\n\n\n\n<p>Michael Stanely Chinaza <strong>2201853785&nbsp;<\/strong><\/p>\n\n\n\n<p>Database security and backend classes<br><\/p>\n\n\n\n<p>Rachel Hera <strong>2201841671<\/strong><\/p>\n\n\n\n<p>Designing user Interface<br><\/p>\n\n\n\n<p>Isabella Virgin <strong>2201808144<\/strong><\/p>\n\n\n\n<p>Managing queries and demo video<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ERD<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/a7lQZmZXpKVgeTXBFHPyS9nf-OW86fEuhBlmXoQve0a57xMEZwC6Aw5aypxPn18iMnZpgRtvhrwGl-1ieOcDblHYAVYuIAhZWkaw0toBr-pw9Lxmdv1JeUoS1vJbEkhzb5RicUP8\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Relation Schema<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/h4>\n\n\n\n<p>\t &nbsp; &nbsp; <strong>Ambassador<\/strong><\/p>\n\n\n\n<p>ambassodorid\u2192 brand<\/p>\n\n\n\n<p><strong>Ambassador<\/strong>(username,brand)<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>Default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>username<\/td><td>varchar<\/td><td>Not Null<\/td><td>primary\/foreign<\/td><td>Uniquely identifies each user and therefore each ambassador&nbsp;<\/td><\/tr><tr><td>brand<\/td><td>int<\/td><td>Not Null<\/td><td>foreign<\/td><td>Every ambassador is specific to one brand<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Brand<\/strong><\/p>\n\n\n\n<p>brandid\u2192 {brandName}<\/p>\n\n\n\n<p><strong>Brand<\/strong>(brandid, brandName)<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>Default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>brandid<\/td><td>int<\/td><td>Not Null<\/td><td>primary<\/td><td>Unique for every brand and practical to use on queries(names can be too long&nbsp;<\/td><\/tr><tr><td>brandName<\/td><td>varchar<\/td><td>Not Null<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Cart<\/strong><\/p>\n\n\n\n<p>cartid\u2192 {productid,quantity,customerid}<\/p>\n\n\n\n<p><strong>Cart<\/strong>(cartid, productid, quantity, customerid)<\/p>\n\n\n\n<p>Foreign Key productid references Product(productid) On Delete Cascade On Update Restrict<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>cartid<\/td><td>int<\/td><td>Not null<\/td><td>primary<\/td><td>Uniquely identifies all rows<\/td><\/tr><tr><td>productid<\/td><td>int<\/td><td>Not null<\/td><td>foreign<\/td><td>To perform join queries with product table<\/td><\/tr><tr><td>quantity<\/td><td>int<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>customerid<\/td><td>varchar<\/td><td>Not null<\/td><td>foreign<\/td><td>Every item in the cart belongs to a specific customer<\/td><\/tr><tr><td>ordered<\/td><td>boolean<\/td><td>false<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Category<\/strong><\/p>\n\n\n\n<p>categoryid\u2192 categoryname<\/p>\n\n\n\n<p><strong>Category<\/strong>(categoryid, categoryname)<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>categoryid<\/td><td>int<\/td><td>Not null<\/td><td>primary<\/td><td>Uniquely identifies each row<\/td><\/tr><tr><td>categoryname<\/td><td>varchar<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>CreditCard<\/strong><\/p>\n\n\n\n<p>cardnumber\u2192 {nameOnCard,expiryDate}<\/p>\n\n\n\n<p><strong>CreditCard<\/strong>(cardNumber, expirydate, NameOnCard)<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>cardnumber<\/td><td>varchar<\/td><td>Not null<\/td><td>primary<\/td><td>Unique in real life&nbsp;<\/td><\/tr><tr><td>expirydate<\/td><td>Date<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>Nameoncard<\/td><td>varchar<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Customer<\/strong><\/p>\n\n\n\n<p>customerid\u2192 creditCardNum<\/p>\n\n\n\n<p><strong>Customer<\/strong>(Username, cardnumber)<\/p>\n\n\n\n<p>Foreign Key cardnumber references CreditCard(cardNumber) On Delete Cascade On Update Cascade<\/p>\n\n\n\n<p>Foreign Key Username references Users(Username) On Delete Cascade On Update Restrict<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>username<\/td><td>varchar<\/td><td>Not null<\/td><td>primary\/foreign<\/td><td>Unique for every user hence also unique for every customer, a customer should be a user<\/td><\/tr><tr><td>cardnumber<\/td><td>varchar<\/td><td>Not null<\/td><td>foreign<\/td><td>Every customer has a card to make purchases<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Influencer<\/strong><\/p>\n\n\n\n<p>influencerid\u2192 {skinTone,TypeOfMakeup}<\/p>\n\n\n\n<p><strong>Influencer<\/strong>(username, skintone, typeOfMakeup)<\/p>\n\n\n\n<p>Foreign Key username references users(username) On Delete Cascade On Update Restrict<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>username<\/td><td>varchar<\/td><td>Not null<\/td><td>primary\/foreign<\/td><td>Uniqely defines each role,Influencer is a user<\/td><\/tr><tr><td>skintone<\/td><td>varchar<\/td><td>null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>typeOfmakeup<\/td><td>varchar<\/td><td>null<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Order<\/strong><\/p>\n\n\n\n<p>orderid\u2192 {cartid,creditCardNumber}<\/p>\n\n\n\n<p><strong>Orders<\/strong>(orderid, customerid, cardnumber, Date)<\/p>\n\n\n\n<p>Foreign Key customerid references customers (username) On Delete Cascade On Update Restrict<\/p>\n\n\n\n<p>Foreign Key cardnumber references creditcard(cardnumber) On Delete Cascade On Update Cascade<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>orderid<\/td><td>int<\/td><td>Not null<\/td><td>primary<\/td><td>Uniquely identifies each order<\/td><\/tr><tr><td>customerid<\/td><td>varchar<\/td><td>Not null<\/td><td>foreign<\/td><td>Every order is made by a customer<\/td><\/tr><tr><td>cardnumber<\/td><td>varchar<\/td><td>Not null<\/td><td>foreign<\/td><td>Every purchase requires a payment<\/td><\/tr><tr><td>Date<\/td><td>Date<\/td><td>Current Date<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Product&nbsp;<\/strong><\/p>\n\n\n\n<p>productid\u2192 {productName,brand,category}<\/p>\n\n\n\n<p><strong>Product<\/strong>(brand, productid, productName, productpprice, image, category)<\/p>\n\n\n\n<p>Foreign Key brand references brand(brandid) On Delete Cascade&nbsp; On Update Restrict<\/p>\n\n\n\n<p>Foreign Key category references category(categoryid) On Delete Cascade&nbsp; On Update Restrict<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>productid<\/td><td>int<\/td><td>Not null<\/td><td>primary<\/td><td>Uniquely identifies every product<\/td><\/tr><tr><td>productName<\/td><td>varchar<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>brand<\/td><td>int<\/td><td>Not null<\/td><td>foreign<\/td><td>Every product has a specific brand<\/td><\/tr><tr><td>category<\/td><td>int<\/td><td>Not null<\/td><td>foreign<\/td><td>Every product has&nbsp; a category<\/td><\/tr><tr><td>productprice<\/td><td>double<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>image<\/td><td>blob<\/td><td>null<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Tutorials<\/strong><\/p>\n\n\n\n<p>tutorialid \u2192 {influencerid, productid, video, tips}<\/p>\n\n\n\n<p><strong>Tutorials<\/strong>(influencerId, tutorialid, productid, url, tips, recommended)<\/p>\n\n\n\n<p>Foreign Key influencerId references influencer(username) On Delete Cascade On Update Restrict<\/p>\n\n\n\n<p>Foreign Key productid references Product(productid) On Delete Cascade On Update Restrict<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>tutorialid<\/td><td>int<\/td><td>Not null<\/td><td>primary<\/td><td>Unique for each tutorial<\/td><\/tr><tr><td>productid<\/td><td>int<\/td><td>Not null<\/td><td>foreign<\/td><td>Each tutorial is for one product<\/td><\/tr><tr><td>influencerid<\/td><td>varchar<\/td><td>Not null<\/td><td>foreign<\/td><td>Influencer makes the tutorial<\/td><\/tr><tr><td>VideoUrl<\/td><td>varchar<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>Tips<\/td><td>varchar<\/td><td>No Tips<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>Recommended<\/td><td>boolean<\/td><td>false<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Users<\/strong><\/p>\n\n\n\n<p>username \u2192 {firstname,lastname,password,role}<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Attribute<\/td><td>datatype<\/td><td>default<\/td><td>key<\/td><td>Reason<\/td><\/tr><tr><td>firstname<\/td><td>varchar<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>lastname<\/td><td>varchar<\/td><td>Not null<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>username<\/td><td>varchar<\/td><td>Not null<\/td><td>primary<\/td><td>Uniquely identifies each role and similar to real life<\/td><\/tr><tr><td>isAdmin<\/td><td>boolean<\/td><td>0<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>isInfluencer<\/td><td>boolean<\/td><td>0<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>isAmbassador<\/td><td>boolean<\/td><td>0<\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>isCustomer<\/td><td>boolean<\/td><td>0<\/td><td><br><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Sample Queries<\/h3>\n\n\n\n<p>To show subtotal in the Cart&nbsp;<\/p>\n\n\n\n<p>SELECT SUM(PRODUCT.PRODUCTPRICE* CART.QUANTITY ) AS TOTAL FROM CART INNER JOIN PRODUCT ON CART.PRODUCTID= PRODUCT.PRODUCTID AND CART.CUSTOMERID = &#8216;&#8221;+currentUserId+&#8221;&#8216;&#8221;;<\/p>\n\n\n\n<p>To show Cart items of the customer<\/p>\n\n\n\n<p>SELECT * FROM CART INNER JOIN PRODUCT ON CART.PRODUCTID= PRODUCT.PRODUCTID AND CART.CUSTOMERID = &#8216;&#8221;+currentUserId+&#8221;&#8216;&#8221;<\/p>\n\n\n\n<p>To insert Products into Product Table<\/p>\n\n\n\n<p>&#8220;INSERT INTO PRODUCT(BRAND,PRODUCTID,PRODUCTNAME,PRODUCTPRICE,CATEGORY) VALUES(?,?,?,?,?)&#8221;<\/p>\n\n\n\n<p>To delete Users by userid perfomed by admin<\/p>\n\n\n\n<p>&#8220;DELETE FROM USERS WHERE USERNAME='&#8221;+userid+&#8221;&#8216;&#8221;&nbsp;<\/p>\n\n\n\n<p>To insert tutorials into Tutorials table<\/p>\n\n\n\n<p>&#8220;INSERT INTO TUTORIALS(TUTORIALID,PRODUCTID,URL,TIPS,INFLUENCERID) VALUES(?,?,?,?,?)&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Security<\/h3>\n\n\n\n<p>Our system uses traditional authentication of password and username.If the user enters credentials conforming to the admin then they will be directed to the admin page else there will be directed to their respective pages depending on their roles.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">User Interface<\/h3>\n\n\n\n<p>Register as a new user form.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/SxRC4nhq1tPE-RWv_h9nnV8cH318LHcg2snmKloQALehB0mxJiaUPkavvLDkR5c1P39nWn0d1O6XQj7kpYCMq3NJPSlYdBMZOaasr7Dhpt5covTp8Iflb2TCJBYuz9LnBaOaQxuu\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>INSERT INTO USERS(FIRSTNAME,LASTNAME,USERNAME,PASSWORD,ISADMIN,ISCUSTOMER,<\/p>\n\n\n\n<p>ISINFLUENCER,ISAMBASSADOR) VALUES(?,?,?,?,?,?,?,?)&#8221;;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Register as a customer form<\/p>\n\n\n\n<p>INSERT INTO CUSTOMERS(USERNAME,CARDNUMBER) VALUES(?,?)<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/Knlj_QJUoign7LaF7tNMz0YU-5c2H3-WcZSgd0gcNNobvyCB3J7OnjR9Dor_D_PJ_D7QzcI6dKWstHVqmCdQ9n5dXwopx0eBDe89A3-atDMGb3_g06cyS5y12NnB2Cy7OXGbNv_j\" alt=\"\" \/><\/figure>\n\n\n\n<p>Login form<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/kEyF-1Jx92uxUMQkvXVkXeRiOiCcdDvBqdQ3mHt4IAABNvMId3D9IZSiEC5MEbOvvAPpRzgHDiyRxsEmlweRDm3Y37bqIZsMDyGKHxN9gQBzQFafeb8gS3spPHr3vufhoixQeG-R\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Customer dashboard<\/p>\n\n\n\n<p>SELECT * FROM PRODUCT INNER JOIN CATEGORY WHERE PRODUCT.CATEGORY = CATEGORY.CATEGORYID &#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/Dzb2awaUi1SlN2tUo7lGeABaBHmzHOaU-_nAXIj2C_bxxhc6KK6N14Xy70tMRYpbWpdrEsdppOf9zdHrH2JV6jQHfZEp6sALDf9vq39sD5b1zIJZs8UAww4zjUOQBz0NK6MCR2j3\" alt=\"\" \/><\/figure>\n\n\n\n<p>Customer Cart<\/p>\n\n\n\n<p>SELECT * FROM CART INNER JOIN PRODUCT ON CART.PRODUCTID= PRODUCT.PRODUCTID AND CART.CUSTOMERID = &#8216;&#8221;+query&#8221;&#8216;&#8221;;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/2-9-VyfyWqvzta7nOj2kCmxbpQ7Z99ypW3ZHXV4PYsq6XpC3wlH3Du1fQdOmiut5Ojt0BDFOuZXeJEf7pLmM01b9iHHZiJrQEMjLRf1UA3lRf1e5Sp6L0AIItRUC6HsDcm_4tVdx\" alt=\"\" \/><\/figure>\n\n\n\n<p>Customer Orders<\/p>\n\n\n\n<p>&#8220;SELECT * FROM&nbsp; ORDERS WHERE CUSTOMERID ='&#8221;+customerid+&#8221;&#8216;&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/8BoRSPaE8GjUNS1DTM22MRejQcuHdNjvbQQVtPeR15VCJcOTwgZqEO071zuRwxmrisjZUQ5uHE5MPKnrgzoARbowhqZRF1pRh6q-ZrO_vsjkI2K1qRlbVy0EYZyrMcrzEyzXNvE8\" alt=\"\" \/><\/figure>\n\n\n\n<p>Brand Ambassador Dashboard<\/p>\n\n\n\n<p>SELECT * FROM PRODUCT INNER JOIN CATEGORY WHERE PRODUCT.CATEGORY = CATEGORY.CATEGORYID &#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/7Lf8aGScS1hDTmEovMPtUeltQUFwwEztGxUA7S2EfQxQvc7EjUdEpqXWzZsc9fXZFT7JwFsXRjIXfuD3petYzhKcLCBHN_UraAc9hdgnXI7kcZoxwg8qf1ZIv3yH3fjoKlNEFxtl\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Add New Product<\/p>\n\n\n\n<p>&#8220;INSERT INTO PRODUCT(BRAND,PRODUCTID,PRODUCTNAME,PRODUCTPRICE,CATEGORY) VALUES(?,?,?,?,?)&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/CSDUq-MS4Oh0T_b7vWC2DjL13ir2I8-oZ8aAB0s2UgdsFD5OdaQAq7bxpo9V19gvKAmPa8ZlrG56QrBWhJI8sJcflCoHdfUjAB3yMzKp70-biyQ2udBu2UA9X7Cf5BU5LhiDSjAg\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Influencer Dashboard<\/p>\n\n\n\n<p>\u201cSELECT * FROM TUTORIALS WHERE INFLUENCERID = \u2018\u201c+query\u201d\u2019\u201d;<\/p>\n\n\n\n<p>\u201cSELECT * FROM PRODUCT\u201d;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/hZMw-rAVkBuNEq7_PYEycHsu6X4779mwHS5ga2cvrZsX5a5rr1TrAvm-S19e12nkILqCJOQbMr1VN1d4Fol0NYkMQ-I1fQ-unI8nD76-QjAWZ6ZmlS0HbWQpVYZDg7Sd-K_vRRzH\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>&#8220;INSERT INTO TUTORIALS(TUTORIALID,PRODUCTID,URL,TIPS,INFLUENCERID) VALUES(?,?,?,?,?)&#8221;;<\/p>\n\n\n\n<p>Add new Tutorial<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/qoReWX5ZcP6ddA00MSh0sjdBAb4vnGFYti3tcR_JFI9tgFFwfurX3hgYx3FziQ7WIWxbSHoY7zDPaaiRHO65p1S0AS7v9Z-RsfMqJPebKsNj68aeFbcuQbqT1zhxfUE1mHTjZn0Y\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Admin Dashboard<\/p>\n\n\n\n<p>&#8220;SELECT * FROM&nbsp; USERS&#8221;;<\/p>\n\n\n\n<p>&#8220;SELECT * FROM PRODUCT INNER JOIN CATEGORY WHERE PRODUCT.CATEGORY = CATEGORY.CATEGORYID &#8220;;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/P4XMhqdVJYN22DfA53Fez98eg4Hg_RFWMpJlIe9yN9lqesF32AaZa9RmqqHnUAL_6MCmm2S78e0pcbqYBuiMabzjuZMgDHM3b1FnaG5ohF9TSZiyNBoshnNvNw0S1iJdMpxIGg0G\" alt=\"\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/beautytasara27\/Database-Project-Online-shop Problem Description Our project is an online shop that sells makeup . The basic idea is that people can buy products without having to physically go to shops or malls and they can get other additional information like tutorials on how to use the products they buy without exhausting searches on google. Real life [&hellip;]<\/p>\n","protected":false},"author":9231,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-db_systems"],"_links":{"self":[{"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/9231"}],"replies":[{"embeddable":true,"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=81"}],"version-history":[{"count":2,"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions\/84"}],"wp:attachment":[{"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beauty27.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}