You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a multiline comment above a model in your schema.prisma file, e.g.:
/// A TOTPAuthenticator represents an authenticator that a User has set up,
/// which can solve [TOTP](https://de.wikipedia.org/wiki/Time-based_One-time_Password_Algorithmus) challenges.
model TotpAuthenticator {
id Int @id @default(autoincrement())
/// The encrypted secret of the authenticator.
secret String
/// Whether the authenticator has been verified. A User must enter a correct TOTP code one time, to verify the authenticator.
verified Boolean @default(false)
registeredAt DateTime @default(now())
userId Int @unique
user User @relation(fields: [userId], references: [id], onUpdate: Cascade, onDelete: Cascade)
@@map("totp_authenticator")
}
Run prisma generate
The TypeScript declaration file nexus generates will become invalid, e.g.:
exportinterfaceTotpAuthenticator{$name: 'TotpAuthenticator'$description: 'A TOTPAuthenticator represents an authenticator that a User has set up,
whichcansolve[TOTP](https://de.wikipedia.org/wiki/Time-based_One-time_Password_Algorithmus) challenges.'
Note the line break in the single-quoted string.
The text was updated successfully, but these errors were encountered:
schema.prisma
file, e.g.:prisma generate
The TypeScript declaration file nexus generates will become invalid, e.g.:
Note the line break in the single-quoted string.
The text was updated successfully, but these errors were encountered: