feat: added Prisma
This commit is contained in:
Riccardo Senica
2023-08-05 17:23:34 +02:00
committed by GitHub
parent 9c01101c1b
commit 392e0db67b
17 changed files with 181 additions and 18 deletions

View File

@@ -0,0 +1,8 @@
-- CreateTable
CREATE TABLE "Addition" (
"id" TEXT NOT NULL,
"datetime" TIMESTAMP(3) NOT NULL,
"value" INTEGER NOT NULL,
CONSTRAINT "Addition_pkey" PRIMARY KEY ("id")
);

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"

17
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,17 @@
// 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 Addition {
id String @id
datetime DateTime
value Int
}