From fd1b85609e8a2a50c3aa7231cbbb1992827b37fa Mon Sep 17 00:00:00 2001
From: Sean Morley
Date: Sat, 13 Apr 2024 19:48:53 +0000
Subject: [PATCH] Remove unnecessary database migration scripts and update info
modal text
---
...mic_the_fury.sql => 0000_hard_mach_iv.sql} | 32 +-
migrations/0001_smart_cargill.sql | 1 -
migrations/0002_glamorous_junta.sql | 11 -
migrations/0003_nasty_onslaught.sql | 1 -
migrations/0004_short_luke_cage.sql | 2 -
migrations/0005_nervous_krista_starr.sql | 1 -
migrations/0006_fuzzy_gamma_corps.sql | 1 -
migrations/0007_youthful_shiver_man.sql | 1 -
migrations/0008_safe_mordo.sql | 1 -
migrations/0009_zippy_domino.sql | 11 -
migrations/0010_closed_nicolaos.sql | 1 -
migrations/0011_legal_red_hulk.sql | 1 -
migrations/0012_slow_miracleman.sql | 2 -
migrations/0013_high_unicorn.sql | 2 -
migrations/0014_wet_wong.sql | 1 -
migrations/0015_nappy_spot.sql | 1 -
migrations/0016_curvy_purple_man.sql | 1 -
migrations/0017_thankful_kylun.sql | 1 -
migrations/0018_melodic_fabian_cortez.sql | 1 -
migrations/0019_elite_landau.sql | 1 -
migrations/meta/0000_snapshot.json | 97 +++++-
migrations/meta/0001_snapshot.json | 253 --------------
migrations/meta/0002_snapshot.json | 295 ----------------
migrations/meta/0003_snapshot.json | 295 ----------------
migrations/meta/0004_snapshot.json | 295 ----------------
migrations/meta/0005_snapshot.json | 295 ----------------
migrations/meta/0006_snapshot.json | 295 ----------------
migrations/meta/0007_snapshot.json | 253 --------------
migrations/meta/0008_snapshot.json | 261 --------------
migrations/meta/0009_snapshot.json | 303 ----------------
migrations/meta/0010_snapshot.json | 311 -----------------
migrations/meta/0011_snapshot.json | 319 -----------------
migrations/meta/0012_snapshot.json | 319 -----------------
migrations/meta/0013_snapshot.json | 319 -----------------
migrations/meta/0014_snapshot.json | 319 -----------------
migrations/meta/0015_snapshot.json | 326 ------------------
migrations/meta/0016_snapshot.json | 319 -----------------
migrations/meta/0017_snapshot.json | 325 -----------------
migrations/meta/0018_snapshot.json | 319 -----------------
migrations/meta/0019_snapshot.json | 311 -----------------
migrations/meta/_journal.json | 137 +-------
src/lib/components/InfoModal.svelte | 2 +-
src/lib/components/Navbar.svelte | 8 +-
src/lib/db/schema.ts | 10 +
src/routes/log/+page.svelte | 7 -
src/routes/worldtravel/+page.server.ts | 8 +-
src/routes/worldtravel/+page.svelte | 1 -
.../worldtravel/[countrycode]/+page.server.ts | 5 +-
48 files changed, 134 insertions(+), 5947 deletions(-)
rename migrations/{0000_panoramic_the_fury.sql => 0000_hard_mach_iv.sql} (57%)
delete mode 100644 migrations/0001_smart_cargill.sql
delete mode 100644 migrations/0002_glamorous_junta.sql
delete mode 100644 migrations/0003_nasty_onslaught.sql
delete mode 100644 migrations/0004_short_luke_cage.sql
delete mode 100644 migrations/0005_nervous_krista_starr.sql
delete mode 100644 migrations/0006_fuzzy_gamma_corps.sql
delete mode 100644 migrations/0007_youthful_shiver_man.sql
delete mode 100644 migrations/0008_safe_mordo.sql
delete mode 100644 migrations/0009_zippy_domino.sql
delete mode 100644 migrations/0010_closed_nicolaos.sql
delete mode 100644 migrations/0011_legal_red_hulk.sql
delete mode 100644 migrations/0012_slow_miracleman.sql
delete mode 100644 migrations/0013_high_unicorn.sql
delete mode 100644 migrations/0014_wet_wong.sql
delete mode 100644 migrations/0015_nappy_spot.sql
delete mode 100644 migrations/0016_curvy_purple_man.sql
delete mode 100644 migrations/0017_thankful_kylun.sql
delete mode 100644 migrations/0018_melodic_fabian_cortez.sql
delete mode 100644 migrations/0019_elite_landau.sql
delete mode 100644 migrations/meta/0001_snapshot.json
delete mode 100644 migrations/meta/0002_snapshot.json
delete mode 100644 migrations/meta/0003_snapshot.json
delete mode 100644 migrations/meta/0004_snapshot.json
delete mode 100644 migrations/meta/0005_snapshot.json
delete mode 100644 migrations/meta/0006_snapshot.json
delete mode 100644 migrations/meta/0007_snapshot.json
delete mode 100644 migrations/meta/0008_snapshot.json
delete mode 100644 migrations/meta/0009_snapshot.json
delete mode 100644 migrations/meta/0010_snapshot.json
delete mode 100644 migrations/meta/0011_snapshot.json
delete mode 100644 migrations/meta/0012_snapshot.json
delete mode 100644 migrations/meta/0013_snapshot.json
delete mode 100644 migrations/meta/0014_snapshot.json
delete mode 100644 migrations/meta/0015_snapshot.json
delete mode 100644 migrations/meta/0016_snapshot.json
delete mode 100644 migrations/meta/0017_snapshot.json
delete mode 100644 migrations/meta/0018_snapshot.json
delete mode 100644 migrations/meta/0019_snapshot.json
diff --git a/migrations/0000_panoramic_the_fury.sql b/migrations/0000_hard_mach_iv.sql
similarity index 57%
rename from migrations/0000_panoramic_the_fury.sql
rename to migrations/0000_hard_mach_iv.sql
index 0a49b25..5c9c0d1 100644
--- a/migrations/0000_panoramic_the_fury.sql
+++ b/migrations/0000_hard_mach_iv.sql
@@ -1,7 +1,8 @@
CREATE TABLE IF NOT EXISTS "featuredAdventures" (
"id" serial PRIMARY KEY NOT NULL,
"name" text NOT NULL,
- "location" text
+ "location" text,
+ CONSTRAINT "featuredAdventures_name_unique" UNIQUE("name")
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "session" (
@@ -34,17 +35,24 @@ CREATE TABLE IF NOT EXISTS "userVisitedAdventures" (
"visited_date" text
);
--> statement-breakpoint
+CREATE TABLE IF NOT EXISTS "userVisitedWorldTravel" (
+ "id" serial PRIMARY KEY NOT NULL,
+ "user_id" text NOT NULL,
+ "region_id" varchar NOT NULL
+);
+--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "worldTravelCountries" (
"id" serial PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"country_code" text NOT NULL,
- "continent" text NOT NULL
+ "continent" text NOT NULL,
+ CONSTRAINT "worldTravelCountries_country_code_unique" UNIQUE("country_code")
);
--> statement-breakpoint
-CREATE TABLE IF NOT EXISTS "worldTravelRegions" (
- "id" serial PRIMARY KEY NOT NULL,
+CREATE TABLE IF NOT EXISTS "worldTravelCountryRegions" (
+ "id" varchar PRIMARY KEY NOT NULL,
"name" text NOT NULL,
- "country_id" text NOT NULL
+ "country_code" text NOT NULL
);
--> statement-breakpoint
DO $$ BEGIN
@@ -60,7 +68,19 @@ EXCEPTION
END $$;
--> statement-breakpoint
DO $$ BEGIN
- ALTER TABLE "worldTravelRegions" ADD CONSTRAINT "worldTravelRegions_country_id_worldTravelCountries_id_fk" FOREIGN KEY ("country_id") REFERENCES "worldTravelCountries"("id") ON DELETE no action ON UPDATE no action;
+ ALTER TABLE "userVisitedWorldTravel" ADD CONSTRAINT "userVisitedWorldTravel_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE no action ON UPDATE no action;
+EXCEPTION
+ WHEN duplicate_object THEN null;
+END $$;
+--> statement-breakpoint
+DO $$ BEGIN
+ ALTER TABLE "userVisitedWorldTravel" ADD CONSTRAINT "userVisitedWorldTravel_region_id_worldTravelCountryRegions_id_fk" FOREIGN KEY ("region_id") REFERENCES "worldTravelCountryRegions"("id") ON DELETE no action ON UPDATE no action;
+EXCEPTION
+ WHEN duplicate_object THEN null;
+END $$;
+--> statement-breakpoint
+DO $$ BEGIN
+ ALTER TABLE "worldTravelCountryRegions" ADD CONSTRAINT "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk" FOREIGN KEY ("country_code") REFERENCES "worldTravelCountries"("country_code") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
diff --git a/migrations/0001_smart_cargill.sql b/migrations/0001_smart_cargill.sql
deleted file mode 100644
index 4c29cad..0000000
--- a/migrations/0001_smart_cargill.sql
+++ /dev/null
@@ -1 +0,0 @@
-DROP TABLE "worldTravelRegions";
\ No newline at end of file
diff --git a/migrations/0002_glamorous_junta.sql b/migrations/0002_glamorous_junta.sql
deleted file mode 100644
index 18653c4..0000000
--- a/migrations/0002_glamorous_junta.sql
+++ /dev/null
@@ -1,11 +0,0 @@
-CREATE TABLE IF NOT EXISTS "worldTravelRegions" (
- "id" serial PRIMARY KEY NOT NULL,
- "name" text NOT NULL,
- "country_id" text NOT NULL
-);
---> statement-breakpoint
-DO $$ BEGIN
- ALTER TABLE "worldTravelRegions" ADD CONSTRAINT "worldTravelRegions_country_id_worldTravelCountries_id_fk" FOREIGN KEY ("country_id") REFERENCES "worldTravelCountries"("id") ON DELETE no action ON UPDATE no action;
-EXCEPTION
- WHEN duplicate_object THEN null;
-END $$;
diff --git a/migrations/0003_nasty_onslaught.sql b/migrations/0003_nasty_onslaught.sql
deleted file mode 100644
index e9faf11..0000000
--- a/migrations/0003_nasty_onslaught.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelRegions" ALTER COLUMN "country_id" SET DATA TYPE serial;
\ No newline at end of file
diff --git a/migrations/0004_short_luke_cage.sql b/migrations/0004_short_luke_cage.sql
deleted file mode 100644
index 4e6e152..0000000
--- a/migrations/0004_short_luke_cage.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE "worldTravelRegions" ALTER COLUMN "id" SET DATA TYPE text;--> statement-breakpoint
-ALTER TABLE "worldTravelRegions" ALTER COLUMN "country_id" SET DATA TYPE text;
\ No newline at end of file
diff --git a/migrations/0005_nervous_krista_starr.sql b/migrations/0005_nervous_krista_starr.sql
deleted file mode 100644
index 1cd4bab..0000000
--- a/migrations/0005_nervous_krista_starr.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelRegions" ALTER COLUMN "country_id" SET DATA TYPE integer;
\ No newline at end of file
diff --git a/migrations/0006_fuzzy_gamma_corps.sql b/migrations/0006_fuzzy_gamma_corps.sql
deleted file mode 100644
index 47b3cec..0000000
--- a/migrations/0006_fuzzy_gamma_corps.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelRegions" ALTER COLUMN "id" SET DATA TYPE serial;
\ No newline at end of file
diff --git a/migrations/0007_youthful_shiver_man.sql b/migrations/0007_youthful_shiver_man.sql
deleted file mode 100644
index 4c29cad..0000000
--- a/migrations/0007_youthful_shiver_man.sql
+++ /dev/null
@@ -1 +0,0 @@
-DROP TABLE "worldTravelRegions";
\ No newline at end of file
diff --git a/migrations/0008_safe_mordo.sql b/migrations/0008_safe_mordo.sql
deleted file mode 100644
index af48707..0000000
--- a/migrations/0008_safe_mordo.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountries" ADD CONSTRAINT "worldTravelCountries_country_code_unique" UNIQUE("country_code");
\ No newline at end of file
diff --git a/migrations/0009_zippy_domino.sql b/migrations/0009_zippy_domino.sql
deleted file mode 100644
index c62f6f2..0000000
--- a/migrations/0009_zippy_domino.sql
+++ /dev/null
@@ -1,11 +0,0 @@
-CREATE TABLE IF NOT EXISTS "worldTravelCountryRegions" (
- "id" serial PRIMARY KEY NOT NULL,
- "name" text NOT NULL,
- "country_code" text NOT NULL
-);
---> statement-breakpoint
-DO $$ BEGIN
- ALTER TABLE "worldTravelCountryRegions" ADD CONSTRAINT "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk" FOREIGN KEY ("country_code") REFERENCES "worldTravelCountries"("country_code") ON DELETE no action ON UPDATE no action;
-EXCEPTION
- WHEN duplicate_object THEN null;
-END $$;
diff --git a/migrations/0010_closed_nicolaos.sql b/migrations/0010_closed_nicolaos.sql
deleted file mode 100644
index 3f0f4f0..0000000
--- a/migrations/0010_closed_nicolaos.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "featuredAdventures" ADD CONSTRAINT "featuredAdventures_name_unique" UNIQUE("name");
\ No newline at end of file
diff --git a/migrations/0011_legal_red_hulk.sql b/migrations/0011_legal_red_hulk.sql
deleted file mode 100644
index 7f6cdfa..0000000
--- a/migrations/0011_legal_red_hulk.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountryRegions" ADD CONSTRAINT "worldTravelCountryRegions_name_unique" UNIQUE("name");
\ No newline at end of file
diff --git a/migrations/0012_slow_miracleman.sql b/migrations/0012_slow_miracleman.sql
deleted file mode 100644
index 40df603..0000000
--- a/migrations/0012_slow_miracleman.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE "worldTravelCountries" DROP CONSTRAINT "worldTravelCountries_country_code_unique";--> statement-breakpoint
-ALTER TABLE "worldTravelCountries" ADD CONSTRAINT "worldTravelCountries_name_unique" UNIQUE("name");
\ No newline at end of file
diff --git a/migrations/0013_high_unicorn.sql b/migrations/0013_high_unicorn.sql
deleted file mode 100644
index f9a2cd5..0000000
--- a/migrations/0013_high_unicorn.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE "worldTravelCountries" DROP CONSTRAINT "worldTravelCountries_name_unique";--> statement-breakpoint
-ALTER TABLE "worldTravelCountries" ADD CONSTRAINT "worldTravelCountries_country_code_unique" UNIQUE("country_code");
\ No newline at end of file
diff --git a/migrations/0014_wet_wong.sql b/migrations/0014_wet_wong.sql
deleted file mode 100644
index 203285b..0000000
--- a/migrations/0014_wet_wong.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountryRegions" ALTER COLUMN "id" SET DATA TYPE varchar;
\ No newline at end of file
diff --git a/migrations/0015_nappy_spot.sql b/migrations/0015_nappy_spot.sql
deleted file mode 100644
index fdc5115..0000000
--- a/migrations/0015_nappy_spot.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountryRegions" ADD CONSTRAINT "worldTravelCountryRegions_id_unique" UNIQUE("id");
\ No newline at end of file
diff --git a/migrations/0016_curvy_purple_man.sql b/migrations/0016_curvy_purple_man.sql
deleted file mode 100644
index b8c4b7e..0000000
--- a/migrations/0016_curvy_purple_man.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountryRegions" DROP CONSTRAINT "worldTravelCountryRegions_name_unique";
\ No newline at end of file
diff --git a/migrations/0017_thankful_kylun.sql b/migrations/0017_thankful_kylun.sql
deleted file mode 100644
index 79c2845..0000000
--- a/migrations/0017_thankful_kylun.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountries" ADD COLUMN "flag" text;
\ No newline at end of file
diff --git a/migrations/0018_melodic_fabian_cortez.sql b/migrations/0018_melodic_fabian_cortez.sql
deleted file mode 100644
index c2a6815..0000000
--- a/migrations/0018_melodic_fabian_cortez.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountries" DROP COLUMN IF EXISTS "flag";
\ No newline at end of file
diff --git a/migrations/0019_elite_landau.sql b/migrations/0019_elite_landau.sql
deleted file mode 100644
index e5e1e0f..0000000
--- a/migrations/0019_elite_landau.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountryRegions" DROP CONSTRAINT "worldTravelCountryRegions_id_unique";
\ No newline at end of file
diff --git a/migrations/meta/0000_snapshot.json b/migrations/meta/0000_snapshot.json
index ecf5508..f038117 100644
--- a/migrations/meta/0000_snapshot.json
+++ b/migrations/meta/0000_snapshot.json
@@ -1,5 +1,5 @@
{
- "id": "9341b0b9-3e38-4043-bc4e-5655d8f0a953",
+ "id": "b6ab23b7-42f0-4475-aa5d-23b92c00e97f",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "5",
"dialect": "pg",
@@ -30,7 +30,15 @@
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
- "uniqueConstraints": {}
+ "uniqueConstraints": {
+ "featuredAdventures_name_unique": {
+ "name": "featuredAdventures_name_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "name"
+ ]
+ }
+ }
},
"session": {
"name": "session",
@@ -208,6 +216,61 @@
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
+ "userVisitedWorldTravel": {
+ "name": "userVisitedWorldTravel",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "region_id": {
+ "name": "region_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "userVisitedWorldTravel_user_id_user_id_fk": {
+ "name": "userVisitedWorldTravel_user_id_user_id_fk",
+ "tableFrom": "userVisitedWorldTravel",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "userVisitedWorldTravel_region_id_worldTravelCountryRegions_id_fk": {
+ "name": "userVisitedWorldTravel_region_id_worldTravelCountryRegions_id_fk",
+ "tableFrom": "userVisitedWorldTravel",
+ "tableTo": "worldTravelCountryRegions",
+ "columnsFrom": [
+ "region_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {}
+ },
"worldTravelCountries": {
"name": "worldTravelCountries",
"schema": "",
@@ -240,15 +303,23 @@
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
- "uniqueConstraints": {}
+ "uniqueConstraints": {
+ "worldTravelCountries_country_code_unique": {
+ "name": "worldTravelCountries_country_code_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "country_code"
+ ]
+ }
+ }
},
- "worldTravelRegions": {
- "name": "worldTravelRegions",
+ "worldTravelCountryRegions": {
+ "name": "worldTravelCountryRegions",
"schema": "",
"columns": {
"id": {
"name": "id",
- "type": "serial",
+ "type": "varchar",
"primaryKey": true,
"notNull": true
},
@@ -258,8 +329,8 @@
"primaryKey": false,
"notNull": true
},
- "country_id": {
- "name": "country_id",
+ "country_code": {
+ "name": "country_code",
"type": "text",
"primaryKey": false,
"notNull": true
@@ -267,15 +338,15 @@
},
"indexes": {},
"foreignKeys": {
- "worldTravelRegions_country_id_worldTravelCountries_id_fk": {
- "name": "worldTravelRegions_country_id_worldTravelCountries_id_fk",
- "tableFrom": "worldTravelRegions",
+ "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
+ "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
+ "tableFrom": "worldTravelCountryRegions",
"tableTo": "worldTravelCountries",
"columnsFrom": [
- "country_id"
+ "country_code"
],
"columnsTo": [
- "id"
+ "country_code"
],
"onDelete": "no action",
"onUpdate": "no action"
diff --git a/migrations/meta/0001_snapshot.json b/migrations/meta/0001_snapshot.json
deleted file mode 100644
index 862a31e..0000000
--- a/migrations/meta/0001_snapshot.json
+++ /dev/null
@@ -1,253 +0,0 @@
-{
- "id": "125fff71-fcac-407b-b811-cdc6cf7931b0",
- "prevId": "9341b0b9-3e38-4043-bc4e-5655d8f0a953",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0002_snapshot.json b/migrations/meta/0002_snapshot.json
deleted file mode 100644
index 054374a..0000000
--- a/migrations/meta/0002_snapshot.json
+++ /dev/null
@@ -1,295 +0,0 @@
-{
- "id": "88f059b3-b83f-4031-b2f1-89401d74ad1b",
- "prevId": "125fff71-fcac-407b-b811-cdc6cf7931b0",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelRegions": {
- "name": "worldTravelRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_id": {
- "name": "country_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelRegions_country_id_worldTravelCountries_id_fk": {
- "name": "worldTravelRegions_country_id_worldTravelCountries_id_fk",
- "tableFrom": "worldTravelRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0003_snapshot.json b/migrations/meta/0003_snapshot.json
deleted file mode 100644
index 0b80ab5..0000000
--- a/migrations/meta/0003_snapshot.json
+++ /dev/null
@@ -1,295 +0,0 @@
-{
- "id": "e6295a91-815f-4f5e-8e1c-f83901c9b8d1",
- "prevId": "88f059b3-b83f-4031-b2f1-89401d74ad1b",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelRegions": {
- "name": "worldTravelRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_id": {
- "name": "country_id",
- "type": "serial",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelRegions_country_id_worldTravelCountries_id_fk": {
- "name": "worldTravelRegions_country_id_worldTravelCountries_id_fk",
- "tableFrom": "worldTravelRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0004_snapshot.json b/migrations/meta/0004_snapshot.json
deleted file mode 100644
index a895a77..0000000
--- a/migrations/meta/0004_snapshot.json
+++ /dev/null
@@ -1,295 +0,0 @@
-{
- "id": "ca4d65ff-ab48-476d-8494-27a21ac0fcf4",
- "prevId": "e6295a91-815f-4f5e-8e1c-f83901c9b8d1",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelRegions": {
- "name": "worldTravelRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_id": {
- "name": "country_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelRegions_country_id_worldTravelCountries_id_fk": {
- "name": "worldTravelRegions_country_id_worldTravelCountries_id_fk",
- "tableFrom": "worldTravelRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0005_snapshot.json b/migrations/meta/0005_snapshot.json
deleted file mode 100644
index b301016..0000000
--- a/migrations/meta/0005_snapshot.json
+++ /dev/null
@@ -1,295 +0,0 @@
-{
- "id": "f19bd92c-115d-4f2e-a3be-31ece1ba07b0",
- "prevId": "ca4d65ff-ab48-476d-8494-27a21ac0fcf4",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelRegions": {
- "name": "worldTravelRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_id": {
- "name": "country_id",
- "type": "integer",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelRegions_country_id_worldTravelCountries_id_fk": {
- "name": "worldTravelRegions_country_id_worldTravelCountries_id_fk",
- "tableFrom": "worldTravelRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0006_snapshot.json b/migrations/meta/0006_snapshot.json
deleted file mode 100644
index 447088a..0000000
--- a/migrations/meta/0006_snapshot.json
+++ /dev/null
@@ -1,295 +0,0 @@
-{
- "id": "1cfee0e3-3270-431c-9045-4938e0d02935",
- "prevId": "f19bd92c-115d-4f2e-a3be-31ece1ba07b0",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelRegions": {
- "name": "worldTravelRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_id": {
- "name": "country_id",
- "type": "integer",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelRegions_country_id_worldTravelCountries_id_fk": {
- "name": "worldTravelRegions_country_id_worldTravelCountries_id_fk",
- "tableFrom": "worldTravelRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0007_snapshot.json b/migrations/meta/0007_snapshot.json
deleted file mode 100644
index 4c284d4..0000000
--- a/migrations/meta/0007_snapshot.json
+++ /dev/null
@@ -1,253 +0,0 @@
-{
- "id": "d395e6d3-0873-4815-8875-f1c2ce0c3571",
- "prevId": "1cfee0e3-3270-431c-9045-4938e0d02935",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0008_snapshot.json b/migrations/meta/0008_snapshot.json
deleted file mode 100644
index 3a784ef..0000000
--- a/migrations/meta/0008_snapshot.json
+++ /dev/null
@@ -1,261 +0,0 @@
-{
- "id": "8b58d463-f4b8-4e19-bbf5-338c16470029",
- "prevId": "d395e6d3-0873-4815-8875-f1c2ce0c3571",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0009_snapshot.json b/migrations/meta/0009_snapshot.json
deleted file mode 100644
index 8fb5571..0000000
--- a/migrations/meta/0009_snapshot.json
+++ /dev/null
@@ -1,303 +0,0 @@
-{
- "id": "309515d8-823e-493d-96c2-aef7ff79a953",
- "prevId": "8b58d463-f4b8-4e19-bbf5-338c16470029",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0010_snapshot.json b/migrations/meta/0010_snapshot.json
deleted file mode 100644
index 8824345..0000000
--- a/migrations/meta/0010_snapshot.json
+++ /dev/null
@@ -1,311 +0,0 @@
-{
- "id": "988ebc41-0384-43ed-a4dc-acaf5f14f88b",
- "prevId": "309515d8-823e-493d-96c2-aef7ff79a953",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0011_snapshot.json b/migrations/meta/0011_snapshot.json
deleted file mode 100644
index 762a976..0000000
--- a/migrations/meta/0011_snapshot.json
+++ /dev/null
@@ -1,319 +0,0 @@
-{
- "id": "341b817a-4a1f-43ea-9e49-34769fca6da8",
- "prevId": "988ebc41-0384-43ed-a4dc-acaf5f14f88b",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_name_unique": {
- "name": "worldTravelCountryRegions_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0012_snapshot.json b/migrations/meta/0012_snapshot.json
deleted file mode 100644
index e214bd7..0000000
--- a/migrations/meta/0012_snapshot.json
+++ /dev/null
@@ -1,319 +0,0 @@
-{
- "id": "3ea6cd28-ab73-49f1-be48-fdacff1559e2",
- "prevId": "341b817a-4a1f-43ea-9e49-34769fca6da8",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_name_unique": {
- "name": "worldTravelCountries_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_name_unique": {
- "name": "worldTravelCountryRegions_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0013_snapshot.json b/migrations/meta/0013_snapshot.json
deleted file mode 100644
index fc97e05..0000000
--- a/migrations/meta/0013_snapshot.json
+++ /dev/null
@@ -1,319 +0,0 @@
-{
- "id": "09cc6e72-191b-4579-ad62-e24dbc03bacf",
- "prevId": "3ea6cd28-ab73-49f1-be48-fdacff1559e2",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_name_unique": {
- "name": "worldTravelCountryRegions_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0014_snapshot.json b/migrations/meta/0014_snapshot.json
deleted file mode 100644
index 20f4015..0000000
--- a/migrations/meta/0014_snapshot.json
+++ /dev/null
@@ -1,319 +0,0 @@
-{
- "id": "9570801b-297b-432f-bfb0-26e00e378f8d",
- "prevId": "09cc6e72-191b-4579-ad62-e24dbc03bacf",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_name_unique": {
- "name": "worldTravelCountryRegions_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0015_snapshot.json b/migrations/meta/0015_snapshot.json
deleted file mode 100644
index b455656..0000000
--- a/migrations/meta/0015_snapshot.json
+++ /dev/null
@@ -1,326 +0,0 @@
-{
- "id": "08e82a7f-26df-4a30-a7d0-8e6043a2de43",
- "prevId": "9570801b-297b-432f-bfb0-26e00e378f8d",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_id_unique": {
- "name": "worldTravelCountryRegions_id_unique",
- "nullsNotDistinct": false,
- "columns": [
- "id"
- ]
- },
- "worldTravelCountryRegions_name_unique": {
- "name": "worldTravelCountryRegions_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0016_snapshot.json b/migrations/meta/0016_snapshot.json
deleted file mode 100644
index 2e6b21b..0000000
--- a/migrations/meta/0016_snapshot.json
+++ /dev/null
@@ -1,319 +0,0 @@
-{
- "id": "4ec66da5-6bf4-41ac-b998-95f1e14a5372",
- "prevId": "08e82a7f-26df-4a30-a7d0-8e6043a2de43",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_id_unique": {
- "name": "worldTravelCountryRegions_id_unique",
- "nullsNotDistinct": false,
- "columns": [
- "id"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0017_snapshot.json b/migrations/meta/0017_snapshot.json
deleted file mode 100644
index f6dbc0f..0000000
--- a/migrations/meta/0017_snapshot.json
+++ /dev/null
@@ -1,325 +0,0 @@
-{
- "id": "da14abf1-e425-4729-8f0a-de16628963d5",
- "prevId": "4ec66da5-6bf4-41ac-b998-95f1e14a5372",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "flag": {
- "name": "flag",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_id_unique": {
- "name": "worldTravelCountryRegions_id_unique",
- "nullsNotDistinct": false,
- "columns": [
- "id"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0018_snapshot.json b/migrations/meta/0018_snapshot.json
deleted file mode 100644
index c7509dd..0000000
--- a/migrations/meta/0018_snapshot.json
+++ /dev/null
@@ -1,319 +0,0 @@
-{
- "id": "c200f3b3-43e2-4eff-97ff-ad9d9bf20d54",
- "prevId": "da14abf1-e425-4729-8f0a-de16628963d5",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountryRegions_id_unique": {
- "name": "worldTravelCountryRegions_id_unique",
- "nullsNotDistinct": false,
- "columns": [
- "id"
- ]
- }
- }
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/0019_snapshot.json b/migrations/meta/0019_snapshot.json
deleted file mode 100644
index 272bd7c..0000000
--- a/migrations/meta/0019_snapshot.json
+++ /dev/null
@@ -1,311 +0,0 @@
-{
- "id": "b2dfe1d2-0430-4405-ba82-18e197f1d12e",
- "prevId": "c200f3b3-43e2-4eff-97ff-ad9d9bf20d54",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "featuredAdventures": {
- "name": "featuredAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "featuredAdventures_name_unique": {
- "name": "featuredAdventures_name_unique",
- "nullsNotDistinct": false,
- "columns": [
- "name"
- ]
- }
- }
- },
- "session": {
- "name": "session",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "expires_at": {
- "name": "expires_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "session_user_id_user_id_fk": {
- "name": "session_user_id_user_id_fk",
- "tableFrom": "session",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "sharedAdventures": {
- "name": "sharedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "data": {
- "name": "data",
- "type": "json",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "user": {
- "name": "user",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "primaryKey": true,
- "notNull": true
- },
- "username": {
- "name": "username",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "first_name": {
- "name": "first_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "last_name": {
- "name": "last_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "icon": {
- "name": "icon",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "hashed_password": {
- "name": "hashed_password",
- "type": "varchar",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "userVisitedAdventures": {
- "name": "userVisitedAdventures",
- "schema": "",
- "columns": {
- "adventure_id": {
- "name": "adventure_id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventure_name": {
- "name": "adventure_name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "visited_date": {
- "name": "visited_date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userVisitedAdventures_user_id_user_id_fk": {
- "name": "userVisitedAdventures_user_id_user_id_fk",
- "tableFrom": "userVisitedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "worldTravelCountries": {
- "name": "worldTravelCountries",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "continent": {
- "name": "continent",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {
- "worldTravelCountries_country_code_unique": {
- "name": "worldTravelCountries_country_code_unique",
- "nullsNotDistinct": false,
- "columns": [
- "country_code"
- ]
- }
- }
- },
- "worldTravelCountryRegions": {
- "name": "worldTravelCountryRegions",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar",
- "primaryKey": true,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- }
- },
- "indexes": {},
- "foreignKeys": {
- "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk": {
- "name": "worldTravelCountryRegions_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "worldTravelCountryRegions",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- }
- },
- "enums": {},
- "schemas": {},
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- }
-}
\ No newline at end of file
diff --git a/migrations/meta/_journal.json b/migrations/meta/_journal.json
index 6b2fc02..ce56d99 100644
--- a/migrations/meta/_journal.json
+++ b/migrations/meta/_journal.json
@@ -5,141 +5,8 @@
{
"idx": 0,
"version": "5",
- "when": 1712879281600,
- "tag": "0000_panoramic_the_fury",
- "breakpoints": true
- },
- {
- "idx": 1,
- "version": "5",
- "when": 1712879301598,
- "tag": "0001_smart_cargill",
- "breakpoints": true
- },
- {
- "idx": 2,
- "version": "5",
- "when": 1712879457439,
- "tag": "0002_glamorous_junta",
- "breakpoints": true
- },
- {
- "idx": 3,
- "version": "5",
- "when": 1712879488661,
- "tag": "0003_nasty_onslaught",
- "breakpoints": true
- },
- {
- "idx": 4,
- "version": "5",
- "when": 1712879540659,
- "tag": "0004_short_luke_cage",
- "breakpoints": true
- },
- {
- "idx": 5,
- "version": "5",
- "when": 1712879605930,
- "tag": "0005_nervous_krista_starr",
- "breakpoints": true
- },
- {
- "idx": 6,
- "version": "5",
- "when": 1712879813045,
- "tag": "0006_fuzzy_gamma_corps",
- "breakpoints": true
- },
- {
- "idx": 7,
- "version": "5",
- "when": 1712879875868,
- "tag": "0007_youthful_shiver_man",
- "breakpoints": true
- },
- {
- "idx": 8,
- "version": "5",
- "when": 1712880065046,
- "tag": "0008_safe_mordo",
- "breakpoints": true
- },
- {
- "idx": 9,
- "version": "5",
- "when": 1712880141763,
- "tag": "0009_zippy_domino",
- "breakpoints": true
- },
- {
- "idx": 10,
- "version": "5",
- "when": 1712884724835,
- "tag": "0010_closed_nicolaos",
- "breakpoints": true
- },
- {
- "idx": 11,
- "version": "5",
- "when": 1712885083355,
- "tag": "0011_legal_red_hulk",
- "breakpoints": true
- },
- {
- "idx": 12,
- "version": "5",
- "when": 1712886238567,
- "tag": "0012_slow_miracleman",
- "breakpoints": true
- },
- {
- "idx": 13,
- "version": "5",
- "when": 1712886259872,
- "tag": "0013_high_unicorn",
- "breakpoints": true
- },
- {
- "idx": 14,
- "version": "5",
- "when": 1712928449165,
- "tag": "0014_wet_wong",
- "breakpoints": true
- },
- {
- "idx": 15,
- "version": "5",
- "when": 1712928491810,
- "tag": "0015_nappy_spot",
- "breakpoints": true
- },
- {
- "idx": 16,
- "version": "5",
- "when": 1712930531576,
- "tag": "0016_curvy_purple_man",
- "breakpoints": true
- },
- {
- "idx": 17,
- "version": "5",
- "when": 1712930713274,
- "tag": "0017_thankful_kylun",
- "breakpoints": true
- },
- {
- "idx": 18,
- "version": "5",
- "when": 1712930841346,
- "tag": "0018_melodic_fabian_cortez",
- "breakpoints": true
- },
- {
- "idx": 19,
- "version": "5",
- "when": 1712932115102,
- "tag": "0019_elite_landau",
+ "when": 1713037717607,
+ "tag": "0000_hard_mach_iv",
"breakpoints": true
}
]
diff --git a/src/lib/components/InfoModal.svelte b/src/lib/components/InfoModal.svelte
index abcae56..ea8e428 100644
--- a/src/lib/components/InfoModal.svelte
+++ b/src/lib/components/InfoModal.svelte
@@ -50,7 +50,7 @@
class="text-primary-500 underline">Source Code
- Made with ❤️ in Connecticut.
+ Made with ❤️ in the United States.
My Log
-
{/if}
+
diff --git a/src/lib/db/schema.ts b/src/lib/db/schema.ts
index ea77814..2167882 100644
--- a/src/lib/db/schema.ts
+++ b/src/lib/db/schema.ts
@@ -66,4 +66,14 @@ export const worldTravelCountryRegions = pgTable("worldTravelCountryRegions", {
country_code: text("country_code")
.notNull()
.references(() => worldTravelCountries.country_code),
+});
+
+export const userVisitedWorldTravel = pgTable("userVisitedWorldTravel", {
+ id: serial("id").primaryKey(),
+ userId: text("user_id")
+ .notNull()
+ .references(() => userTable.id),
+ region_id: varchar("region_id")
+ .notNull()
+ .references(() => worldTravelCountryRegions.id),
});
\ No newline at end of file
diff --git a/src/routes/log/+page.svelte b/src/routes/log/+page.svelte
index a15748f..af7b1b6 100644
--- a/src/routes/log/+page.svelte
+++ b/src/routes/log/+page.svelte
@@ -5,15 +5,8 @@
import AdventureCard from "$lib/components/AdventureCard.svelte";
import type { Adventure } from "$lib/utils/types";
- import {
- addAdventure,
- clearAdventures,
- getAdventures,
- getNextId,
- } from "../../services/adventureService";
import { onMount } from "svelte";
import { exportData } from "../../services/export";
- import { importData } from "../../services/import";
import exportFile from "$lib/assets/exportFile.svg";
import deleteIcon from "$lib/assets/deleteIcon.svg";
import SucessToast from "$lib/components/SucessToast.svelte";
diff --git a/src/routes/worldtravel/+page.server.ts b/src/routes/worldtravel/+page.server.ts
index dfe39b9..828a847 100644
--- a/src/routes/worldtravel/+page.server.ts
+++ b/src/routes/worldtravel/+page.server.ts
@@ -4,10 +4,10 @@ import type { Adventure } from "$lib/utils/types";
import { db } from "$lib/db/db.server";
import { worldTravelCountries } from "$lib/db/schema";
-export const load: PageServerLoad = async (event) => {
- if (!event.locals.user) {
- return redirect(302, "/login");
- }
+export const load: PageServerLoad = async () => {
+ // if (!event.locals.user) {
+ // return redirect(302, "/login");
+ // }
let response = await db
.select()
.from(worldTravelCountries)
diff --git a/src/routes/worldtravel/+page.svelte b/src/routes/worldtravel/+page.svelte
index 8f45bed..379de26 100644
--- a/src/routes/worldtravel/+page.svelte
+++ b/src/routes/worldtravel/+page.svelte
@@ -3,7 +3,6 @@
import AdventureCard from "$lib/components/AdventureCard.svelte";
export let data: any;
- console.log(data.response);
async function nav(loc: string) {
goto(`/worldtravel/${loc}`);
diff --git a/src/routes/worldtravel/[countrycode]/+page.server.ts b/src/routes/worldtravel/[countrycode]/+page.server.ts
index 8b8458c..7ad6617 100644
--- a/src/routes/worldtravel/[countrycode]/+page.server.ts
+++ b/src/routes/worldtravel/[countrycode]/+page.server.ts
@@ -2,14 +2,15 @@
import { db } from '$lib/db/db.server.js';
import { worldTravelCountryRegions } from '$lib/db/schema.js';
import { eq } from 'drizzle-orm';
+import type { PageServerLoad } from './$types';
+
+export const load: PageServerLoad = async ({ params, locals }) => {
-export async function load({ params }) {
const { countrycode } = params;
let data = await db
.select()
.from(worldTravelCountryRegions)
.where(eq(worldTravelCountryRegions.country_code, countrycode))
- console.log(data)
return {
regions : data,
};