Merge branch 'main' into mannBranch
This commit is contained in:
@@ -36,6 +36,7 @@ CREATE TABLE Product (
|
||||
StockQuantity INT,
|
||||
UserID INT,
|
||||
Description TEXT,
|
||||
Timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
CategoryID INT NOT NULL,
|
||||
Date DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (UserID) REFERENCES User (UserID),
|
||||
|
||||
@@ -2,10 +2,11 @@ const mysql = require("mysql2");
|
||||
|
||||
//Create a pool of connections to allow multiple query happen at the same time
|
||||
const pool = mysql.createPool({
|
||||
host: "localhost",
|
||||
user: "root",
|
||||
database: "marketplace",
|
||||
password: "12345678",
|
||||
host: "marketplace-db.cpkkqmq065sx.ca-central-1.rds.amazonaws.com",
|
||||
user: "admin",
|
||||
password: "qizsYh-movpub-wuhdo2",
|
||||
database: "Marketplace",
|
||||
port: "3306",
|
||||
});
|
||||
|
||||
//Export a promise for promise-based query
|
||||
|
||||
Reference in New Issue
Block a user