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