mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 23:09:37 +02:00
Add log page, update database schema, and API endpoint for user visits
This commit is contained in:
parent
1b9edeb61f
commit
ea79fd2d76
8 changed files with 245 additions and 11 deletions
|
@ -40,10 +40,11 @@ export const sessionTable = pgTable("session", {
|
|||
});
|
||||
|
||||
export const userVisitedAdventures = pgTable("userVisitedAdventures", {
|
||||
adventureID: serial("adventure_id").primaryKey(),
|
||||
userId: text("user_id")
|
||||
.notNull()
|
||||
.references(() => userTable.id),
|
||||
adventureName: text("adventure_name").notNull(),
|
||||
location: text("location"),
|
||||
adventureVistied: text("adventure_visited"),
|
||||
visitedDate: text("visited_date"),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue