diff --git a/migrations/0000_hard_mach_iv.sql b/migrations/0000_hard_mach_iv.sql
deleted file mode 100644
index 5c9c0d1..0000000
--- a/migrations/0000_hard_mach_iv.sql
+++ /dev/null
@@ -1,86 +0,0 @@
-CREATE TABLE IF NOT EXISTS "featuredAdventures" (
- "id" serial PRIMARY KEY NOT NULL,
- "name" text NOT NULL,
- "location" text,
- CONSTRAINT "featuredAdventures_name_unique" UNIQUE("name")
-);
---> statement-breakpoint
-CREATE TABLE IF NOT EXISTS "session" (
- "id" text PRIMARY KEY NOT NULL,
- "user_id" text NOT NULL,
- "expires_at" timestamp with time zone NOT NULL
-);
---> statement-breakpoint
-CREATE TABLE IF NOT EXISTS "sharedAdventures" (
- "id" text PRIMARY KEY NOT NULL,
- "data" json NOT NULL,
- "name" text NOT NULL,
- "date" text NOT NULL
-);
---> statement-breakpoint
-CREATE TABLE IF NOT EXISTS "user" (
- "id" text PRIMARY KEY NOT NULL,
- "username" text NOT NULL,
- "first_name" text NOT NULL,
- "last_name" text NOT NULL,
- "icon" text,
- "hashed_password" varchar NOT NULL
-);
---> statement-breakpoint
-CREATE TABLE IF NOT EXISTS "userVisitedAdventures" (
- "adventure_id" serial PRIMARY KEY NOT NULL,
- "user_id" text NOT NULL,
- "adventure_name" text NOT NULL,
- "location" text,
- "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,
- CONSTRAINT "worldTravelCountries_country_code_unique" UNIQUE("country_code")
-);
---> statement-breakpoint
-CREATE TABLE IF NOT EXISTS "worldTravelCountryRegions" (
- "id" varchar PRIMARY KEY NOT NULL,
- "name" text NOT NULL,
- "country_code" text NOT NULL
-);
---> statement-breakpoint
-DO $$ BEGIN
- ALTER TABLE "session" ADD CONSTRAINT "session_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 "userVisitedAdventures" ADD CONSTRAINT "userVisitedAdventures_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_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_closed_wendell_vaughn.sql b/migrations/0001_closed_wendell_vaughn.sql
deleted file mode 100644
index 9f9d831..0000000
--- a/migrations/0001_closed_wendell_vaughn.sql
+++ /dev/null
@@ -1,6 +0,0 @@
-ALTER TABLE "userVisitedWorldTravel" ADD COLUMN "country_code" text NOT NULL;--> statement-breakpoint
-DO $$ BEGIN
- ALTER TABLE "userVisitedWorldTravel" ADD CONSTRAINT "userVisitedWorldTravel_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/0002_far_mephistopheles.sql b/migrations/0002_far_mephistopheles.sql
deleted file mode 100644
index 5a0139a..0000000
--- a/migrations/0002_far_mephistopheles.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "worldTravelCountryRegions" ADD COLUMN "info" json;
\ No newline at end of file
diff --git a/migrations/0003_easy_iron_monger.sql b/migrations/0003_easy_iron_monger.sql
deleted file mode 100644
index 8d6046e..0000000
--- a/migrations/0003_easy_iron_monger.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-ALTER TABLE "user" ADD COLUMN "signup_date" timestamp with time zone NOT NULL;--> statement-breakpoint
-ALTER TABLE "user" ADD COLUMN "last_login" timestamp with time zone;--> statement-breakpoint
-ALTER TABLE "user" ADD COLUMN "role" text NOT NULL;
\ No newline at end of file
diff --git a/migrations/0004_noisy_squadron_supreme.sql b/migrations/0004_noisy_squadron_supreme.sql
deleted file mode 100644
index 73b4715..0000000
--- a/migrations/0004_noisy_squadron_supreme.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-CREATE TABLE IF NOT EXISTS "userPlannedAdventures" (
- "id" serial PRIMARY KEY NOT NULL,
- "user_id" text NOT NULL,
- "adventure_name" text NOT NULL,
- "location" text,
- "activity_types" text
-);
---> statement-breakpoint
-DO $$ BEGIN
- ALTER TABLE "userPlannedAdventures" ADD CONSTRAINT "userPlannedAdventures_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 $$;
diff --git a/migrations/0005_massive_black_tarantula.sql b/migrations/0005_massive_black_tarantula.sql
deleted file mode 100644
index 8bd5e95..0000000
--- a/migrations/0005_massive_black_tarantula.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "userPlannedAdventures" ALTER COLUMN "activity_types" SET DATA TYPE json;
\ No newline at end of file
diff --git a/migrations/0006_colorful_inertia.sql b/migrations/0006_colorful_inertia.sql
deleted file mode 100644
index dab5474..0000000
--- a/migrations/0006_colorful_inertia.sql
+++ /dev/null
@@ -1,10 +0,0 @@
-ALTER TABLE "userPlannedAdventures" RENAME COLUMN "user_id" TO "userId";--> statement-breakpoint
-ALTER TABLE "userPlannedAdventures" RENAME COLUMN "adventure_name" TO "adventureName";--> statement-breakpoint
-ALTER TABLE "userPlannedAdventures" RENAME COLUMN "activity_types" TO "activityTypes";--> statement-breakpoint
-ALTER TABLE "userPlannedAdventures" DROP CONSTRAINT "userPlannedAdventures_user_id_user_id_fk";
---> statement-breakpoint
-DO $$ BEGIN
- ALTER TABLE "userPlannedAdventures" ADD CONSTRAINT "userPlannedAdventures_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE no action ON UPDATE no action;
-EXCEPTION
- WHEN duplicate_object THEN null;
-END $$;
diff --git a/migrations/0007_clear_sinister_six.sql b/migrations/0007_clear_sinister_six.sql
deleted file mode 100644
index 820c4bd..0000000
--- a/migrations/0007_clear_sinister_six.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE "userPlannedAdventures" ADD COLUMN "description" text;--> statement-breakpoint
-ALTER TABLE "userPlannedAdventures" ADD COLUMN "plannedDate" text;
\ No newline at end of file
diff --git a/migrations/0008_open_forgotten_one.sql b/migrations/0008_open_forgotten_one.sql
deleted file mode 100644
index 8d020da..0000000
--- a/migrations/0008_open_forgotten_one.sql
+++ /dev/null
@@ -1,18 +0,0 @@
-CREATE TABLE IF NOT EXISTS "adventures" (
- "id" serial PRIMARY KEY NOT NULL,
- "userId" text NOT NULL,
- "adventureName" text NOT NULL,
- "location" text,
- "activityTypes" json,
- "description" text,
- "rating" integer,
- "link" text,
- "imageUrl" text,
- "date" text
-);
---> statement-breakpoint
-DO $$ BEGIN
- ALTER TABLE "adventures" ADD CONSTRAINT "adventures_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE no action ON UPDATE no action;
-EXCEPTION
- WHEN duplicate_object THEN null;
-END $$;
diff --git a/migrations/0009_clammy_meteorite.sql b/migrations/0009_clammy_meteorite.sql
deleted file mode 100644
index 9ba6b21..0000000
--- a/migrations/0009_clammy_meteorite.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "adventures" RENAME COLUMN "adventureName" TO "name";
\ No newline at end of file
diff --git a/migrations/0010_dazzling_morbius.sql b/migrations/0010_dazzling_morbius.sql
deleted file mode 100644
index e49b9b0..0000000
--- a/migrations/0010_dazzling_morbius.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "userPlannedAdventures" ALTER COLUMN "userId" DROP NOT NULL;
\ No newline at end of file
diff --git a/migrations/0011_bizarre_silver_samurai.sql b/migrations/0011_bizarre_silver_samurai.sql
deleted file mode 100644
index 313722a..0000000
--- a/migrations/0011_bizarre_silver_samurai.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE "userPlannedAdventures" ALTER COLUMN "userId" SET NOT NULL;
\ No newline at end of file
diff --git a/migrations/0012_quiet_katie_power.sql b/migrations/0012_quiet_katie_power.sql
deleted file mode 100644
index 3b9eec3..0000000
--- a/migrations/0012_quiet_katie_power.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE "adventures" ALTER COLUMN "userId" DROP NOT NULL;--> statement-breakpoint
-ALTER TABLE "adventures" ADD COLUMN "type" text NOT NULL;
\ No newline at end of file
diff --git a/migrations/meta/0000_snapshot.json b/migrations/meta/0000_snapshot.json
deleted file mode 100644
index f038117..0000000
--- a/migrations/meta/0000_snapshot.json
+++ /dev/null
@@ -1,366 +0,0 @@
-{
- "id": "b6ab23b7-42f0-4475-aa5d-23b92c00e97f",
- "prevId": "00000000-0000-0000-0000-000000000000",
- "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": {}
- },
- "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": "",
- "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/0001_snapshot.json b/migrations/meta/0001_snapshot.json
deleted file mode 100644
index 6c4e538..0000000
--- a/migrations/meta/0001_snapshot.json
+++ /dev/null
@@ -1,385 +0,0 @@
-{
- "id": "4c095e1a-9f13-4899-aa83-f56864191f51",
- "prevId": "b6ab23b7-42f0-4475-aa5d-23b92c00e97f",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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/0002_snapshot.json b/migrations/meta/0002_snapshot.json
deleted file mode 100644
index f84336c..0000000
--- a/migrations/meta/0002_snapshot.json
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "id": "91692e84-91ec-4411-ad9d-7b8b14f67dda",
- "prevId": "4c095e1a-9f13-4899-aa83-f56864191f51",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0003_snapshot.json b/migrations/meta/0003_snapshot.json
deleted file mode 100644
index dc62400..0000000
--- a/migrations/meta/0003_snapshot.json
+++ /dev/null
@@ -1,409 +0,0 @@
-{
- "id": "72cc9a9a-a12e-4ca2-b644-b704673af4d7",
- "prevId": "91692e84-91ec-4411-ad9d-7b8b14f67dda",
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0004_snapshot.json b/migrations/meta/0004_snapshot.json
deleted file mode 100644
index a3cad2e..0000000
--- a/migrations/meta/0004_snapshot.json
+++ /dev/null
@@ -1,463 +0,0 @@
-{
- "id": "4ed4f0d5-7731-49a1-ab2f-9af3aad2c95c",
- "prevId": "72cc9a9a-a12e-4ca2-b644-b704673af4d7",
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "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
- },
- "activity_types": {
- "name": "activity_types",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_user_id_user_id_fk": {
- "name": "userPlannedAdventures_user_id_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0005_snapshot.json b/migrations/meta/0005_snapshot.json
deleted file mode 100644
index 8b41890..0000000
--- a/migrations/meta/0005_snapshot.json
+++ /dev/null
@@ -1,463 +0,0 @@
-{
- "id": "f3c33262-0fe7-4b0f-8522-82e337da26d5",
- "prevId": "4ed4f0d5-7731-49a1-ab2f-9af3aad2c95c",
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "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
- },
- "activity_types": {
- "name": "activity_types",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_user_id_user_id_fk": {
- "name": "userPlannedAdventures_user_id_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "user_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0006_snapshot.json b/migrations/meta/0006_snapshot.json
deleted file mode 100644
index b5672e8..0000000
--- a/migrations/meta/0006_snapshot.json
+++ /dev/null
@@ -1,463 +0,0 @@
-{
- "id": "42010132-1400-4431-800b-7ecd45c7aa9a",
- "prevId": "f3c33262-0fe7-4b0f-8522-82e337da26d5",
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_userId_user_id_fk": {
- "name": "userPlannedAdventures_userId_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0007_snapshot.json b/migrations/meta/0007_snapshot.json
deleted file mode 100644
index 740c68e..0000000
--- a/migrations/meta/0007_snapshot.json
+++ /dev/null
@@ -1,475 +0,0 @@
-{
- "id": "2dd5d59b-9e77-4a7a-9287-65e6b2456eab",
- "prevId": "42010132-1400-4431-800b-7ecd45c7aa9a",
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "plannedDate": {
- "name": "plannedDate",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_userId_user_id_fk": {
- "name": "userPlannedAdventures_userId_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0008_snapshot.json b/migrations/meta/0008_snapshot.json
deleted file mode 100644
index 3b1af89..0000000
--- a/migrations/meta/0008_snapshot.json
+++ /dev/null
@@ -1,559 +0,0 @@
-{
- "id": "4ef5cc7c-16cb-44d1-8a35-9989fbae87b2",
- "prevId": "2dd5d59b-9e77-4a7a-9287-65e6b2456eab",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "adventures": {
- "name": "adventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "rating": {
- "name": "rating",
- "type": "integer",
- "primaryKey": false,
- "notNull": false
- },
- "link": {
- "name": "link",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "imageUrl": {
- "name": "imageUrl",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "adventures_userId_user_id_fk": {
- "name": "adventures_userId_user_id_fk",
- "tableFrom": "adventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "plannedDate": {
- "name": "plannedDate",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_userId_user_id_fk": {
- "name": "userPlannedAdventures_userId_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0009_snapshot.json b/migrations/meta/0009_snapshot.json
deleted file mode 100644
index 2b780c0..0000000
--- a/migrations/meta/0009_snapshot.json
+++ /dev/null
@@ -1,559 +0,0 @@
-{
- "id": "e79b9053-4a84-4d6f-b6ac-b28a12a2edb8",
- "prevId": "4ef5cc7c-16cb-44d1-8a35-9989fbae87b2",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "adventures": {
- "name": "adventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "rating": {
- "name": "rating",
- "type": "integer",
- "primaryKey": false,
- "notNull": false
- },
- "link": {
- "name": "link",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "imageUrl": {
- "name": "imageUrl",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "adventures_userId_user_id_fk": {
- "name": "adventures_userId_user_id_fk",
- "tableFrom": "adventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "plannedDate": {
- "name": "plannedDate",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_userId_user_id_fk": {
- "name": "userPlannedAdventures_userId_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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 c63b3cc..0000000
--- a/migrations/meta/0010_snapshot.json
+++ /dev/null
@@ -1,559 +0,0 @@
-{
- "id": "a826933a-d744-4ac7-8858-43be4f4fd078",
- "prevId": "e79b9053-4a84-4d6f-b6ac-b28a12a2edb8",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "adventures": {
- "name": "adventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "rating": {
- "name": "rating",
- "type": "integer",
- "primaryKey": false,
- "notNull": false
- },
- "link": {
- "name": "link",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "imageUrl": {
- "name": "imageUrl",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "adventures_userId_user_id_fk": {
- "name": "adventures_userId_user_id_fk",
- "tableFrom": "adventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "plannedDate": {
- "name": "plannedDate",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_userId_user_id_fk": {
- "name": "userPlannedAdventures_userId_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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 3d17ff8..0000000
--- a/migrations/meta/0011_snapshot.json
+++ /dev/null
@@ -1,559 +0,0 @@
-{
- "id": "d1a58675-3daf-43e2-a9a1-c56767fc3d0e",
- "prevId": "a826933a-d744-4ac7-8858-43be4f4fd078",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "adventures": {
- "name": "adventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "rating": {
- "name": "rating",
- "type": "integer",
- "primaryKey": false,
- "notNull": false
- },
- "link": {
- "name": "link",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "imageUrl": {
- "name": "imageUrl",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "adventures_userId_user_id_fk": {
- "name": "adventures_userId_user_id_fk",
- "tableFrom": "adventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "plannedDate": {
- "name": "plannedDate",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_userId_user_id_fk": {
- "name": "userPlannedAdventures_userId_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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/0012_snapshot.json b/migrations/meta/0012_snapshot.json
deleted file mode 100644
index 1c5c64c..0000000
--- a/migrations/meta/0012_snapshot.json
+++ /dev/null
@@ -1,565 +0,0 @@
-{
- "id": "f9d623fb-6563-4b3f-b4c2-6f2169f95e3b",
- "prevId": "d1a58675-3daf-43e2-a9a1-c56767fc3d0e",
- "version": "5",
- "dialect": "pg",
- "tables": {
- "adventures": {
- "name": "adventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "type": {
- "name": "type",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "name": {
- "name": "name",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "rating": {
- "name": "rating",
- "type": "integer",
- "primaryKey": false,
- "notNull": false
- },
- "link": {
- "name": "link",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "imageUrl": {
- "name": "imageUrl",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "date": {
- "name": "date",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "adventures_userId_user_id_fk": {
- "name": "adventures_userId_user_id_fk",
- "tableFrom": "adventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {}
- },
- "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": {}
- },
- "userPlannedAdventures": {
- "name": "userPlannedAdventures",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "userId": {
- "name": "userId",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "adventureName": {
- "name": "adventureName",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "location": {
- "name": "location",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "activityTypes": {
- "name": "activityTypes",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- },
- "description": {
- "name": "description",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "plannedDate": {
- "name": "plannedDate",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {},
- "foreignKeys": {
- "userPlannedAdventures_userId_user_id_fk": {
- "name": "userPlannedAdventures_userId_user_id_fk",
- "tableFrom": "userPlannedAdventures",
- "tableTo": "user",
- "columnsFrom": [
- "userId"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "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
- },
- "signup_date": {
- "name": "signup_date",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true
- },
- "last_login": {
- "name": "last_login",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "role": {
- "name": "role",
- "type": "text",
- "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": {}
- },
- "userVisitedWorldTravel": {
- "name": "userVisitedWorldTravel",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "serial",
- "primaryKey": true,
- "notNull": true
- },
- "country_code": {
- "name": "country_code",
- "type": "text",
- "primaryKey": false,
- "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_country_code_worldTravelCountries_country_code_fk": {
- "name": "userVisitedWorldTravel_country_code_worldTravelCountries_country_code_fk",
- "tableFrom": "userVisitedWorldTravel",
- "tableTo": "worldTravelCountries",
- "columnsFrom": [
- "country_code"
- ],
- "columnsTo": [
- "country_code"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- },
- "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": "",
- "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
- },
- "info": {
- "name": "info",
- "type": "json",
- "primaryKey": false,
- "notNull": false
- }
- },
- "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
deleted file mode 100644
index 392dc84..0000000
--- a/migrations/meta/_journal.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "version": "5",
- "dialect": "pg",
- "entries": [
- {
- "idx": 0,
- "version": "5",
- "when": 1713037717607,
- "tag": "0000_hard_mach_iv",
- "breakpoints": true
- },
- {
- "idx": 1,
- "version": "5",
- "when": 1713050481064,
- "tag": "0001_closed_wendell_vaughn",
- "breakpoints": true
- },
- {
- "idx": 2,
- "version": "5",
- "when": 1713125110816,
- "tag": "0002_far_mephistopheles",
- "breakpoints": true
- },
- {
- "idx": 3,
- "version": "5",
- "when": 1713402092365,
- "tag": "0003_easy_iron_monger",
- "breakpoints": true
- },
- {
- "idx": 4,
- "version": "5",
- "when": 1713737819317,
- "tag": "0004_noisy_squadron_supreme",
- "breakpoints": true
- },
- {
- "idx": 5,
- "version": "5",
- "when": 1713738940329,
- "tag": "0005_massive_black_tarantula",
- "breakpoints": true
- },
- {
- "idx": 6,
- "version": "5",
- "when": 1713739045755,
- "tag": "0006_colorful_inertia",
- "breakpoints": true
- },
- {
- "idx": 7,
- "version": "5",
- "when": 1713739446962,
- "tag": "0007_clear_sinister_six",
- "breakpoints": true
- },
- {
- "idx": 8,
- "version": "5",
- "when": 1713746555380,
- "tag": "0008_open_forgotten_one",
- "breakpoints": true
- },
- {
- "idx": 9,
- "version": "5",
- "when": 1713746620778,
- "tag": "0009_clammy_meteorite",
- "breakpoints": true
- },
- {
- "idx": 10,
- "version": "5",
- "when": 1713746685965,
- "tag": "0010_dazzling_morbius",
- "breakpoints": true
- },
- {
- "idx": 11,
- "version": "5",
- "when": 1713746739294,
- "tag": "0011_bizarre_silver_samurai",
- "breakpoints": true
- },
- {
- "idx": 12,
- "version": "5",
- "when": 1714169595867,
- "tag": "0012_quiet_katie_power",
- "breakpoints": true
- }
- ]
-}
\ No newline at end of file
diff --git a/src/hooks.server.ts b/src/hooks.server.ts
index caa3471..d6a50eb 100644
--- a/src/hooks.server.ts
+++ b/src/hooks.server.ts
@@ -1,6 +1,6 @@
import { lucia } from "$lib/server/auth";
import { redirect, type Handle } from "@sveltejs/kit";
-import { sequence } from '@sveltejs/kit/hooks';
+import { sequence } from "@sveltejs/kit/hooks";
import { db } from "$lib/db/db.server";
import { userTable } from "$lib/db/schema";
import { eq } from "drizzle-orm";
@@ -24,7 +24,7 @@ export const authHook: Handle = async ({ event, resolve }) => {
});
}
if (!session) {
- const sessionCookie:any = lucia.createBlankSessionCookie();
+ const sessionCookie: any = lucia.createBlankSessionCookie();
event.cookies.set(sessionCookie.name, sessionCookie.value, {
path: ".",
...sessionCookie.attributes,
@@ -36,12 +36,12 @@ export const authHook: Handle = async ({ event, resolve }) => {
};
export const themeHook: Handle = async ({ event, resolve }) => {
- let theme:String | null = null;
+ let theme: String | null = null;
const newTheme = event.url.searchParams.get("theme");
const cookieTheme = event.cookies.get("colortheme");
- if(newTheme) {
+ if (newTheme) {
theme = newTheme;
} else if (cookieTheme) {
theme = cookieTheme;
@@ -49,25 +49,20 @@ export const themeHook: Handle = async ({ event, resolve }) => {
if (theme) {
return await resolve(event, {
transformPageChunk: ({ html }) =>
- html.replace('data-theme=""', `data-theme="${theme}"`)
- })
+ html.replace('data-theme=""', `data-theme="${theme}"`),
+ });
}
return await resolve(event);
-}
+};
export const setupAdminUser: Handle = async ({ event, resolve }) => {
// Check if an admin user exists
- /* let result = await db
- .select()
- .from(userVisitedAdventures)
- .where(eq(userVisitedAdventures.userId, event.locals.user.id))
- .execute();*/
let adminUser = await db
- .select()
- .from(userTable)
- .where(eq(userTable.role, 'admin'))
- .execute();
+ .select()
+ .from(userTable)
+ .where(eq(userTable.role, "admin"))
+ .execute();
// If an admin user exists, return the resolved event
if (adminUser != null && adminUser.length > 0) {
event.locals.isServerSetup = true;
diff --git a/src/lib/db/schema.ts b/src/lib/db/schema.ts
index 114db1e..24e5129 100644
--- a/src/lib/db/schema.ts
+++ b/src/lib/db/schema.ts
@@ -53,16 +53,6 @@ export const sessionTable = pgTable("session", {
}).notNull(),
});
-export const userVisitedAdventures = pgTable("userVisitedAdventures", {
- adventureID: serial("adventure_id").primaryKey(),
- userId: text("user_id")
- .notNull()
- .references(() => userTable.id),
- adventureName: text("adventure_name").notNull(),
- location: text("location"),
- visitedDate: text("visited_date"),
-});
-
export const worldTravelCountries = pgTable("worldTravelCountries", {
id: serial("id").primaryKey(),
name: text("name").notNull(),
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 673d702..5e8b46c 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -32,3 +32,11 @@
+
+
+ Home | AdventureLog
+
+
diff --git a/src/routes/api/clearvisits/+server.ts b/src/routes/api/clearvisits/+server.ts
index 64fed2f..c033943 100644
--- a/src/routes/api/clearvisits/+server.ts
+++ b/src/routes/api/clearvisits/+server.ts
@@ -1,27 +1,25 @@
import type { RequestEvent } from "@sveltejs/kit";
import { db } from "$lib/db/db.server";
import { eq } from "drizzle-orm";
-import { userVisitedAdventures } from "$lib/db/schema";
+import { adventureTable } from "$lib/db/schema";
export async function DELETE(event: RequestEvent): Promise {
- if (!event.locals.user) {
- return new Response(JSON.stringify({ error: "No user found" }), {
- status: 401,
- headers: {
- "Content-Type": "application/json",
- },
- });
- }
- let res = await db
- .delete(userVisitedAdventures)
- .where(
- eq(userVisitedAdventures.userId, event.locals.user.id),
- )
- .execute();
- return new Response(JSON.stringify({ res: res }), {
- status: 200,
+ if (!event.locals.user) {
+ return new Response(JSON.stringify({ error: "No user found" }), {
+ status: 401,
headers: {
"Content-Type": "application/json",
},
});
- }
\ No newline at end of file
+ }
+ let res = await db
+ .delete(adventureTable)
+ .where(eq(adventureTable.userId, event.locals.user.id))
+ .execute();
+ return new Response(JSON.stringify({ res: res }), {
+ status: 200,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+}
diff --git a/src/routes/api/regionvisit/+server.ts b/src/routes/api/regionvisit/+server.ts
index 0c18c19..4d419f9 100644
--- a/src/routes/api/regionvisit/+server.ts
+++ b/src/routes/api/regionvisit/+server.ts
@@ -1,78 +1,78 @@
import type { RequestEvent } from "@sveltejs/kit";
import { db } from "$lib/db/db.server";
-import { userVisitedAdventures, userVisitedWorldTravel } from "$lib/db/schema";
+import { userVisitedWorldTravel } from "$lib/db/schema";
import { and, eq } from "drizzle-orm";
export async function POST(event: RequestEvent): Promise {
- if (!event.locals.user) {
- return new Response(JSON.stringify({ error: "Unauthorized" }), {
- status: 401,
- headers: {
- "Content-Type": "application/json",
- },
- });
- }
- let body = await event.request.json();
- let res = await db
+ if (!event.locals.user) {
+ return new Response(JSON.stringify({ error: "Unauthorized" }), {
+ status: 401,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+ }
+ let body = await event.request.json();
+ let res = await db
.insert(userVisitedWorldTravel)
.values({
- userId: event.locals.user.id,
- region_id: body.region_id,
- country_code: body.country_code,
+ userId: event.locals.user.id,
+ region_id: body.region_id,
+ country_code: body.country_code,
})
.execute();
- return new Response(JSON.stringify({ res: res }), {
- status: 200,
- headers: {
- "Content-Type": "application/json",
- },
- });
+ return new Response(JSON.stringify({ res: res }), {
+ status: 200,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
}
export async function GET(event: RequestEvent): Promise {
- if (!event.locals.user) {
- return new Response(JSON.stringify({ error: "Unauthorized" }), {
- status: 401,
- headers: {
- "Content-Type": "application/json",
- },
- });
- }
- let res = await db
+ if (!event.locals.user) {
+ return new Response(JSON.stringify({ error: "Unauthorized" }), {
+ status: 401,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+ }
+ let res = await db
.select()
.from(userVisitedWorldTravel)
- .where(eq(userVisitedWorldTravel.userId,event.locals.user.id));
- return new Response(JSON.stringify({ res: res }), {
- status: 200,
- headers: {
- "Content-Type": "application/json",
- },
- });
+ .where(eq(userVisitedWorldTravel.userId, event.locals.user.id));
+ return new Response(JSON.stringify({ res: res }), {
+ status: 200,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
}
export async function DELETE(event: RequestEvent): Promise {
- if (!event.locals.user) {
- return new Response(JSON.stringify({ error: "Unauthorized" }), {
- status: 401,
- headers: {
- "Content-Type": "application/json",
- },
- });
- }
- let body = await event.request.json();
- let res = await db
+ if (!event.locals.user) {
+ return new Response(JSON.stringify({ error: "Unauthorized" }), {
+ status: 401,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+ }
+ let body = await event.request.json();
+ let res = await db
.delete(userVisitedWorldTravel)
.where(
- and(
- eq(userVisitedWorldTravel.userId, event.locals.user.id),
- eq(userVisitedWorldTravel.region_id, body.region_id),
- )
+ and(
+ eq(userVisitedWorldTravel.userId, event.locals.user.id),
+ eq(userVisitedWorldTravel.region_id, body.region_id)
+ )
)
.execute();
- return new Response(JSON.stringify({ res: res }), {
- status: 200,
- headers: {
- "Content-Type": "application/json",
- },
- });
-}
\ No newline at end of file
+ return new Response(JSON.stringify({ res: res }), {
+ status: 200,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+}
diff --git a/src/routes/api/visitcount/+server.ts b/src/routes/api/visitcount/+server.ts
index 7d28582..6b2ab1c 100644
--- a/src/routes/api/visitcount/+server.ts
+++ b/src/routes/api/visitcount/+server.ts
@@ -1,34 +1,34 @@
import type { RequestEvent } from "@sveltejs/kit";
-import { count } from 'drizzle-orm';
+import { count } from "drizzle-orm";
import { eq } from "drizzle-orm";
-import { userVisitedAdventures } from "$lib/db/schema";
+import { adventureTable } from "$lib/db/schema";
import { db } from "$lib/db/db.server";
export async function GET(event: RequestEvent): Promise {
- if (!event.locals.user) {
- return new Response(JSON.stringify({ error: "No user found" }), {
- status: 401,
- headers: {
- "Content-Type": "application/json",
- },
- });
- }
- // get the count of the number of adventures the user has visited
- let result = await db
- .select({ count: count() })
- .from(userVisitedAdventures)
- .where(eq(userVisitedAdventures.userId,event.locals.user.id))
- .execute();
+ if (!event.locals.user) {
+ return new Response(JSON.stringify({ error: "No user found" }), {
+ status: 401,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+ }
+ // get the count of the number of adventures the user has visited
+ let result = await db
+ .select({ count: count() })
+ .from(adventureTable)
+ .where(eq(adventureTable.userId, event.locals.user.id))
+ .execute();
- return new Response(
- JSON.stringify({
- visitCount: result[0].count,
- }),
- {
- status: 200,
- headers: {
- "Content-Type": "application/json",
- },
- }
- );
- }
\ No newline at end of file
+ return new Response(
+ JSON.stringify({
+ visitCount: result[0].count,
+ }),
+ {
+ status: 200,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ }
+ );
+}
diff --git a/src/routes/api/visits/+server.ts b/src/routes/api/visits/+server.ts
index bf575de..0350389 100644
--- a/src/routes/api/visits/+server.ts
+++ b/src/routes/api/visits/+server.ts
@@ -1,6 +1,6 @@
import { lucia } from "$lib/server/auth";
import type { RequestEvent } from "@sveltejs/kit";
-import { adventureTable, userVisitedAdventures } from "$lib/db/schema";
+import { adventureTable } from "$lib/db/schema";
import { db } from "$lib/db/db.server";
import { and, eq } from "drizzle-orm";
import type { Adventure } from "$lib/utils/types";
diff --git a/src/routes/featured/+page.svelte b/src/routes/featured/+page.svelte
index dd22129..eb8f6a2 100644
--- a/src/routes/featured/+page.svelte
+++ b/src/routes/featured/+page.svelte
@@ -11,15 +11,21 @@
});
async function add(event: CustomEvent<{ name: string; location: string }>) {
+ let newAdventure: Adventure = {
+ name: event.detail.name,
+ location: event.detail.location,
+ date: "",
+ type: "mylog",
+ id: -1,
+ };
+
const response = await fetch("/api/visits", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
- name: event.detail.name,
- location: event.detail.location,
- date: "",
+ newAdventure,
}),
});
diff --git a/src/routes/settings/admin/+page.server.ts b/src/routes/settings/admin/+page.server.ts
index dd25660..b0bc897 100644
--- a/src/routes/settings/admin/+page.server.ts
+++ b/src/routes/settings/admin/+page.server.ts
@@ -2,9 +2,9 @@ import { error, redirect, type Actions, type Handle } from "@sveltejs/kit";
import type { PageServerLoad } from "./$types";
import { db } from "$lib/db/db.server";
import {
+ adventureTable,
sessionTable,
userTable,
- userVisitedAdventures,
userVisitedWorldTravel,
} from "$lib/db/schema";
import type { DatabaseUser } from "$lib/server/auth";
@@ -25,7 +25,7 @@ export const load: PageServerLoad = async (event) => {
users = (await db.select().from(userTable).execute()) as DatabaseUser[];
visitCount = (await db
.select({ count: count() })
- .from(userVisitedAdventures)
+ .from(adventureTable)
.execute()) as unknown as number;
userCount = (await db
.select({ count: count() })