Added new trip plan creator and removed visit count stores

This commit is contained in:
Sean Morley
2024-05-06 23:13:32 +00:00
parent 75da1f4cc6
commit 01865951ac
19 changed files with 967 additions and 522 deletions

View File

@@ -82,16 +82,16 @@ export const userVisitedWorldTravel = pgTable("userVisitedWorldTravel", {
.references(() => worldTravelCountryRegions.id),
});
export const userPlannedAdventures = pgTable("userPlannedAdventures", {
export const userPlannedTrips = pgTable("userPlannedTrips", {
id: serial("id").primaryKey(),
userId: text("userId")
.notNull()
.references(() => userTable.id),
name: text("adventureName").notNull(),
location: text("location"),
activityTypes: json("activityTypes"),
description: text("description"),
date: text("plannedDate"),
startDate: text("startDate"),
endDate: text("endDate"),
adventures: json("adventures"),
});
export const adventureTable = pgTable("adventures", {