feat(services): add GET /channels/[channelId]/messages
This commit is contained in:
5
prisma/migrations/20211229101953_init_4/migration.sql
Normal file
5
prisma/migrations/20211229101953_init_4/migration.sql
Normal file
@ -0,0 +1,5 @@
|
||||
-- DropIndex
|
||||
DROP INDEX "OAuth_userId_key";
|
||||
|
||||
-- DropIndex
|
||||
DROP INDEX "RefreshToken_userId_key";
|
@ -44,7 +44,7 @@ model RefreshToken {
|
||||
token String @db.Text
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
userId Int @unique
|
||||
userId Int
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ model OAuth {
|
||||
provider String @db.VarChar(20)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
userId Int @unique
|
||||
userId Int
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user