feat: scraping, database and tooling
This commit is contained in:
@@ -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");
|
||||
3
prisma/migrations/migration_lock.toml
Normal file
3
prisma/migrations/migration_lock.toml
Normal 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
19
prisma/schema.prisma
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user