feat: scraping, database and tooling

This commit is contained in:
Riccardo
2023-11-30 17:20:44 +01:00
parent 6770080378
commit afa1b943e7
16 changed files with 4393 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
-- CreateTable
CREATE TABLE "Record" (
"id" TEXT NOT NULL,
"datetime" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"name" TEXT NOT NULL,
"areas" TEXT,
"url" TEXT NOT NULL,
CONSTRAINT "Record_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "Record_url_key" ON "Record"("url");

View File

@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql"

19
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,19 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Record {
id String @id @default(uuid())
datetime DateTime @default(now())
name String
areas String?
url String @unique
}