You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I as a guest user, I want to add a product sold out in my wish list, so that I receive a notification when it becomes available.
7
+
8
+
Eu como um usuário convidado, quero adicionar um produto esgotado em minha lista de desejos para que eu receba uma notificação quando ele estiver disponível.
$db->query("CREATE TABLE IF NOT EXISTS wishlists (id INTEGER PRIMARY KEY AUTOINCREMENT, email varchar(255), product_id int, status VARCHAR(1) DEFAULT 'P');");
6
+
$db->query('CREATE TABLE IF NOT EXISTS products (id INTEGER PRIMARY KEY AUTOINCREMENT, name varchar(255), unit_price DECIMAL(10,2), stock int);');
7
+
$stm = $db->query("INSERT INTO products VALUES (null, 'Camiseta', 59.9, 10);");
8
+
$stm = $db->query("INSERT INTO products VALUES (null, 'Bermuda', 69.9, 10);");
0 commit comments