Add country_code field to userVisitedWorldTravel table

This commit is contained in:
Sean Morley
2024-04-14 13:39:32 +00:00
parent 5e1d7ef160
commit c5ce984cac
7 changed files with 411 additions and 2 deletions

View File

@@ -70,6 +70,9 @@ export const worldTravelCountryRegions = pgTable("worldTravelCountryRegions", {
export const userVisitedWorldTravel = pgTable("userVisitedWorldTravel", {
id: serial("id").primaryKey(),
country_code: text("country_code")
.notNull()
.references(() => worldTravelCountries.country_code),
userId: text("user_id")
.notNull()
.references(() => userTable.id),