chore: Add tripId field to Adventure interface and schema
This commit is contained in:
@@ -91,7 +91,6 @@ export const userPlannedTrips = pgTable("userPlannedTrips", {
|
||||
description: text("description"),
|
||||
startDate: text("startDate"),
|
||||
endDate: text("endDate"),
|
||||
adventures: json("adventures"),
|
||||
});
|
||||
|
||||
export const adventureTable = pgTable("adventures", {
|
||||
@@ -106,4 +105,5 @@ export const adventureTable = pgTable("adventures", {
|
||||
link: text("link"),
|
||||
imageUrl: text("imageUrl"),
|
||||
date: text("date"),
|
||||
tripId: integer("tripId").references(() => userPlannedTrips.id),
|
||||
});
|
||||
|
||||
@@ -9,6 +9,7 @@ export interface Adventure {
|
||||
link?: string | undefined;
|
||||
imageUrl?: string | undefined;
|
||||
date?: string | undefined;
|
||||
tripId?: number | undefined;
|
||||
}
|
||||
|
||||
export interface Trip {
|
||||
|
||||
Reference in New Issue
Block a user