initial commit

This commit is contained in:
qugalet 2023-07-09 23:53:49 +03:00
commit a1806cbac9
17 changed files with 3155 additions and 0 deletions

View file

@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "Post" (
"postId" TEXT NOT NULL,
"matrixId" TEXT NOT NULL,
CONSTRAINT "Post_pkey" PRIMARY KEY ("postId")
);
-- CreateIndex
CREATE UNIQUE INDEX "Post_matrixId_key" ON "Post"("matrixId");

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"

16
prisma/schema.prisma Normal file
View file

@ -0,0 +1,16 @@
// 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 Post {
postId String @id
matrixId String @unique
}