Add userVisitedAdventures table and API endpoints for visits and userinfo
This commit is contained in:
@@ -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"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user