Add new migrations and update Adventure interface

This commit is contained in:
Sean Morley
2024-04-22 00:56:43 +00:00
parent a3d4d757a9
commit 921d36aa70
13 changed files with 2326 additions and 54 deletions

View File

@@ -103,3 +103,19 @@ export const userPlannedAdventures = pgTable("userPlannedAdventures", {
description: text("description"),
date: text("plannedDate"),
});
export const adventureTable = pgTable("adventures", {
id: serial("id").primaryKey(),
type: text("type").notNull(),
userId: text("userId")
.notNull()
.references(() => userTable.id),
name: text("name").notNull(),
location: text("location"),
activityTypes: json("activityTypes"),
description: text("description"),
rating: integer("rating"),
link: text("link"),
imageUrl: text("imageUrl"),
date: text("date"),
});