Sync user relation in Prisma schema
All checks were successful
Build and deploy Worker / build (push) Successful in 51s
All checks were successful
Build and deploy Worker / build (push) Successful in 51s
This commit is contained in:
@@ -27,10 +27,25 @@ model Place {
|
|||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model User {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
telegramId String @unique
|
||||||
|
username String?
|
||||||
|
firstName String?
|
||||||
|
lastName String?
|
||||||
|
photoUrl String?
|
||||||
|
languageCode String?
|
||||||
|
voiceExperiences VoiceExperience[]
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
|
}
|
||||||
|
|
||||||
model VoiceExperience {
|
model VoiceExperience {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
placeId String
|
placeId String
|
||||||
place Place @relation(fields: [placeId], references: [id])
|
place Place @relation(fields: [placeId], references: [id])
|
||||||
|
userId String?
|
||||||
|
user User? @relation(fields: [userId], references: [id])
|
||||||
durationSeconds Int
|
durationSeconds Int
|
||||||
audioObjectKey String
|
audioObjectKey String
|
||||||
status VoiceExperienceStatus @default(UPLOADED)
|
status VoiceExperienceStatus @default(UPLOADED)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -130,9 +130,22 @@ exports.Prisma.PlaceScalarFieldEnum = {
|
|||||||
updatedAt: 'updatedAt'
|
updatedAt: 'updatedAt'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.Prisma.UserScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
telegramId: 'telegramId',
|
||||||
|
username: 'username',
|
||||||
|
firstName: 'firstName',
|
||||||
|
lastName: 'lastName',
|
||||||
|
photoUrl: 'photoUrl',
|
||||||
|
languageCode: 'languageCode',
|
||||||
|
createdAt: 'createdAt',
|
||||||
|
updatedAt: 'updatedAt'
|
||||||
|
};
|
||||||
|
|
||||||
exports.Prisma.VoiceExperienceScalarFieldEnum = {
|
exports.Prisma.VoiceExperienceScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
placeId: 'placeId',
|
placeId: 'placeId',
|
||||||
|
userId: 'userId',
|
||||||
durationSeconds: 'durationSeconds',
|
durationSeconds: 'durationSeconds',
|
||||||
audioObjectKey: 'audioObjectKey',
|
audioObjectKey: 'audioObjectKey',
|
||||||
status: 'status',
|
status: 'status',
|
||||||
@@ -157,16 +170,16 @@ exports.Prisma.QueryMode = {
|
|||||||
insensitive: 'insensitive'
|
insensitive: 'insensitive'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.Prisma.NullsOrder = {
|
||||||
|
first: 'first',
|
||||||
|
last: 'last'
|
||||||
|
};
|
||||||
|
|
||||||
exports.Prisma.JsonNullValueFilter = {
|
exports.Prisma.JsonNullValueFilter = {
|
||||||
DbNull: Prisma.DbNull,
|
DbNull: Prisma.DbNull,
|
||||||
JsonNull: Prisma.JsonNull,
|
JsonNull: Prisma.JsonNull,
|
||||||
AnyNull: Prisma.AnyNull
|
AnyNull: Prisma.AnyNull
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.Prisma.NullsOrder = {
|
|
||||||
first: 'first',
|
|
||||||
last: 'last'
|
|
||||||
};
|
|
||||||
exports.VoiceExperienceStatus = exports.$Enums.VoiceExperienceStatus = {
|
exports.VoiceExperienceStatus = exports.$Enums.VoiceExperienceStatus = {
|
||||||
UPLOADED: 'UPLOADED',
|
UPLOADED: 'UPLOADED',
|
||||||
TRANSCRIBING: 'TRANSCRIBING',
|
TRANSCRIBING: 'TRANSCRIBING',
|
||||||
@@ -178,6 +191,7 @@ exports.VoiceExperienceStatus = exports.$Enums.VoiceExperienceStatus = {
|
|||||||
|
|
||||||
exports.Prisma.ModelName = {
|
exports.Prisma.ModelName = {
|
||||||
Place: 'Place',
|
Place: 'Place',
|
||||||
|
User: 'User',
|
||||||
VoiceExperience: 'VoiceExperience'
|
VoiceExperience: 'VoiceExperience'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
1919
src/generated/prisma/index.d.ts
vendored
1919
src/generated/prisma/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "prisma-client-5316d8e66293a4954be6e26169692366997bf25fe9186e98c87e62eed3dc691e",
|
"name": "prisma-client-359590a92aedb32557346cd24ba7dd77e7dd4a806bf36f6641715b1b22de87e3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"browser": "default.js",
|
"browser": "default.js",
|
||||||
|
|||||||
@@ -27,10 +27,25 @@ model Place {
|
|||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model User {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
telegramId String @unique
|
||||||
|
username String?
|
||||||
|
firstName String?
|
||||||
|
lastName String?
|
||||||
|
photoUrl String?
|
||||||
|
languageCode String?
|
||||||
|
voiceExperiences VoiceExperience[]
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
|
}
|
||||||
|
|
||||||
model VoiceExperience {
|
model VoiceExperience {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
placeId String
|
placeId String
|
||||||
place Place @relation(fields: [placeId], references: [id])
|
place Place @relation(fields: [placeId], references: [id])
|
||||||
|
userId String?
|
||||||
|
user User? @relation(fields: [userId], references: [id])
|
||||||
durationSeconds Int
|
durationSeconds Int
|
||||||
audioObjectKey String
|
audioObjectKey String
|
||||||
status VoiceExperienceStatus @default(UPLOADED)
|
status VoiceExperienceStatus @default(UPLOADED)
|
||||||
|
|||||||
Reference in New Issue
Block a user