Compare commits
2 Commits
c2a6783f26
...
7efd7a4deb
| Author | SHA1 | Date | |
|---|---|---|---|
| 7efd7a4deb | |||
| 4f9bb6adb7 |
9
pnpm-lock.yaml
generated
9
pnpm-lock.yaml
generated
@@ -62,6 +62,9 @@ importers:
|
|||||||
dotenv:
|
dotenv:
|
||||||
specifier: ^17.2.3
|
specifier: ^17.2.3
|
||||||
version: 17.2.3
|
version: 17.2.3
|
||||||
|
helmet:
|
||||||
|
specifier: ^8.1.0
|
||||||
|
version: 8.1.0
|
||||||
ioredis:
|
ioredis:
|
||||||
specifier: ^5.8.2
|
specifier: ^5.8.2
|
||||||
version: 5.8.2
|
version: 5.8.2
|
||||||
@@ -2298,6 +2301,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
|
resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
helmet@8.1.0:
|
||||||
|
resolution: {integrity: sha512-jOiHyAZsmnr8LqoPGmCjYAaiuWwjAPLgY8ZX2XrmHawt99/u1y6RgrZMTeoPfpUbV96HOalYgz1qzkRbw54Pmg==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
hono@4.7.10:
|
hono@4.7.10:
|
||||||
resolution: {integrity: sha512-QkACju9MiN59CKSY5JsGZCYmPZkA6sIW6OFCUp7qDjZu6S6KHtJHhAc9Uy9mV9F8PJ1/HQ3ybZF2yjCa/73fvQ==}
|
resolution: {integrity: sha512-QkACju9MiN59CKSY5JsGZCYmPZkA6sIW6OFCUp7qDjZu6S6KHtJHhAc9Uy9mV9F8PJ1/HQ3ybZF2yjCa/73fvQ==}
|
||||||
engines: {node: '>=16.9.0'}
|
engines: {node: '>=16.9.0'}
|
||||||
@@ -6227,6 +6234,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
function-bind: 1.1.2
|
function-bind: 1.1.2
|
||||||
|
|
||||||
|
helmet@8.1.0: {}
|
||||||
|
|
||||||
hono@4.7.10: {}
|
hono@4.7.10: {}
|
||||||
|
|
||||||
html-escaper@2.0.2: {}
|
html-escaper@2.0.2: {}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
generator client {
|
generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
output = "../node_modules/.prisma/client"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
datasource db {
|
datasource db {
|
||||||
@@ -50,10 +49,10 @@ model User {
|
|||||||
activeDollId String? @map("active_doll_id")
|
activeDollId String? @map("active_doll_id")
|
||||||
activeDoll Doll? @relation("ActiveDoll", fields: [activeDollId], references: [id])
|
activeDoll Doll? @relation("ActiveDoll", fields: [activeDollId], references: [id])
|
||||||
|
|
||||||
sentFriendRequests FriendRequest[] @relation("SentFriendRequests")
|
sentFriendRequests FriendRequest[] @relation("SentFriendRequests")
|
||||||
receivedFriendRequests FriendRequest[] @relation("ReceivedFriendRequests")
|
receivedFriendRequests FriendRequest[] @relation("ReceivedFriendRequests")
|
||||||
userFriendships Friendship[] @relation("UserFriendships")
|
userFriendships Friendship[] @relation("UserFriendships")
|
||||||
friendFriendships Friendship[] @relation("FriendFriendships")
|
friendFriendships Friendship[] @relation("FriendFriendships")
|
||||||
dolls Doll[]
|
dolls Doll[]
|
||||||
authIdentities AuthIdentity[]
|
authIdentities AuthIdentity[]
|
||||||
authSessions AuthSession[]
|
authSessions AuthSession[]
|
||||||
@@ -63,17 +62,17 @@ model User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model AuthIdentity {
|
model AuthIdentity {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
provider AuthProvider
|
provider AuthProvider
|
||||||
providerSubject String @map("provider_subject")
|
providerSubject String @map("provider_subject")
|
||||||
providerEmail String? @map("provider_email")
|
providerEmail String? @map("provider_email")
|
||||||
providerName String? @map("provider_name")
|
providerName String? @map("provider_name")
|
||||||
providerUsername String? @map("provider_username")
|
providerUsername String? @map("provider_username")
|
||||||
providerPicture String? @map("provider_picture")
|
providerPicture String? @map("provider_picture")
|
||||||
emailVerified Boolean @default(false) @map("email_verified")
|
emailVerified Boolean @default(false) @map("email_verified")
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
userId String @map("user_id")
|
userId String @map("user_id")
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
@@ -83,14 +82,14 @@ model AuthIdentity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model AuthSession {
|
model AuthSession {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
provider AuthProvider?
|
provider AuthProvider?
|
||||||
refreshTokenHash String @unique @map("refresh_token_hash")
|
refreshTokenHash String @unique @map("refresh_token_hash")
|
||||||
expiresAt DateTime @map("expires_at")
|
expiresAt DateTime @map("expires_at")
|
||||||
revokedAt DateTime? @map("revoked_at")
|
revokedAt DateTime? @map("revoked_at")
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
userId String @map("user_id")
|
userId String @map("user_id")
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
@@ -99,13 +98,13 @@ model AuthSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model AuthExchangeCode {
|
model AuthExchangeCode {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
provider AuthProvider
|
provider AuthProvider
|
||||||
codeHash String @unique @map("code_hash")
|
codeHash String @unique @map("code_hash")
|
||||||
expiresAt DateTime @map("expires_at")
|
expiresAt DateTime @map("expires_at")
|
||||||
consumedAt DateTime? @map("consumed_at")
|
consumedAt DateTime? @map("consumed_at")
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
userId String @map("user_id")
|
userId String @map("user_id")
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user