1
0
Fork 0
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:
Sean Morley 2024-04-03 23:55:00 +00:00
parent ba6a5283fe
commit d834cef83b
10 changed files with 417 additions and 10 deletions

View file

@ -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"),
});