Refactor database schema and add planner functionality

This commit is contained in:
Sean Morley
2024-04-21 22:42:49 +00:00
parent 3072fedccf
commit b2184bdee3
17 changed files with 1593 additions and 14 deletions

View File

@@ -89,4 +89,14 @@ export const userVisitedWorldTravel = pgTable("userVisitedWorldTravel", {
region_id: varchar("region_id")
.notNull()
.references(() => worldTravelCountryRegions.id),
});
});
export const userPlannedAdventures = pgTable("userPlannedAdventures", {
id: serial("id").primaryKey(),
userId: text("userId")
.notNull()
.references(() => userTable.id),
name: text("adventureName").notNull(),
location: text("location"),
activityTypes: json("activityTypes"),
});