chore: 🚧 remove cinemagoer and fiber and add new techinque for scraping

This commit is contained in:
2024-11-06 01:59:13 +01:00
parent 6d88e96864
commit cba9dd3ffc
46 changed files with 1179 additions and 1764 deletions
+1 -6
View File
@@ -1,11 +1,6 @@
version: '3'
services:
harvester:
container_name: harvester-ratingorama
image: harvester:0.1.0
networks:
- ratingorama
core:
container_name: core-ratingorama
image: core:0.1.0
@@ -14,7 +9,7 @@ services:
HARVESTER_API: ${HARVESTER_API}
IS_PRODUCTION: ${IS_PRODUCTION}
ports:
- "3000:3000"
- "8086:8080"
networks:
- ratingorama
db:
-29
View File
@@ -1,29 +0,0 @@
CREATE TABLE IF NOT EXISTS "tv_show" (
"show_id" integer PRIMARY KEY,
"title" varchar NOT NULL,
"runtime" integer NOT NULL,
"popularity" integer NOT NULL DEFAULT 0,
"created_at" timestamp NOT NULL DEFAULT (now()),
"updated_at" timestamp NOT NULL DEFAULT (now())
);
CREATE TABLE IF NOT EXISTS "episodes" (
"episode_id" integer PRIMARY KEY,
"tv_show_id" integer NOT NULL,
"season_number" integer NOT NULL,
"title" varchar NOT NULL,
"number" int NOT NULL,
"aired" date NOT NULL,
"avg_rating" numeric NOT NULL,
"votes" int NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_tv_show_show_id ON "tv_show" ("show_id");
CREATE INDEX IF NOT EXISTS idx_tv_show_title ON "tv_show" ("title");
CREATE INDEX IF NOT EXISTS idx_tv_show_updated_at ON "tv_show" ("updated_at");
CREATE INDEX IF NOT EXISTS idx_episodes_avg_rating ON "episodes" ("avg_rating");
ALTER TABLE "episodes" ADD FOREIGN KEY ("tv_show_id") REFERENCES "tv_show" ("show_id");