#5 Started wiring up endpoints do display user stats

This commit is contained in:
2024-02-01 01:44:02 +00:00
parent fee4a19e3f
commit dd243e9c72
5 changed files with 39 additions and 4 deletions

View File

@ -50,7 +50,7 @@ CREATE TABLE IF NOT EXISTS Orders (
REFERENCES Users (id)
ON DELETE CASCADE
ON UPDATE NO ACTION,
orderDate DATE NOT NULL
orderDate TIMESTAMP NOT NULL
);
CREATE TABLE IF NOT EXISTS Views (
@ -63,5 +63,5 @@ CREATE TABLE IF NOT EXISTS Views (
REFERENCES Users (id)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
viewDate DATE NOT NULL
viewDate TIMESTAMP NOT NULL
)