mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 07:19:36 +02:00
Add userVisitedAdventures table and API endpoints for visits and userinfo
This commit is contained in:
parent
ba6a5283fe
commit
d834cef83b
10 changed files with 417 additions and 10 deletions
|
@ -38,3 +38,12 @@ export const sessionTable = pgTable("session", {
|
|||
mode: "date",
|
||||
}).notNull(),
|
||||
});
|
||||
|
||||
export const userVisitedAdventures = pgTable("userVisitedAdventures", {
|
||||
userId: text("user_id")
|
||||
.notNull()
|
||||
.references(() => userTable.id),
|
||||
adventureName: text("adventure_name").notNull(),
|
||||
location: text("location"),
|
||||
adventureVistied: text("adventure_visited"),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue