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