mirror of
https://github.com/SrIzan10/api.git
synced 2026-06-06 00:46:48 +00:00
refactor: prisma and file based router
This commit is contained in:
24
prisma/schema.prisma
Normal file
24
prisma/schema.prisma
Normal file
@@ -0,0 +1,24 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "mongodb"
|
||||
url = env("MONGODB")
|
||||
}
|
||||
|
||||
model sern_timezones {
|
||||
id String @id @default(auto()) @map("_id") @db.ObjectId
|
||||
v Int @default(0) @map("__v") @ignore
|
||||
timezone String
|
||||
userid String @unique
|
||||
}
|
||||
|
||||
model transcripts {
|
||||
id String @id @default(auto()) @map("_id") @db.ObjectId
|
||||
v Int @default(0) @map("__v") @ignore
|
||||
guild String
|
||||
msgid String @unique
|
||||
text String
|
||||
username String
|
||||
}
|
||||
Reference in New Issue
Block a user