initial commit
This commit is contained in:
commit
a1806cbac9
17 changed files with 3155 additions and 0 deletions
10
prisma/migrations/20230708200924_initial/migration.sql
Normal file
10
prisma/migrations/20230708200924_initial/migration.sql
Normal 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");
|
||||
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"
|
||||
16
prisma/schema.prisma
Normal file
16
prisma/schema.prisma
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue