Identity Provider
Models
Identity

Identity

Stores User Data

Schema

  • pubkey : String (Pubkey)
  • name : String
  • lud16 : JSON
  • nonceId : Int

Relations

Prisma definition

model Identity {
  pubkey       String    @map("id")
  name         String    @map("name")
  nonce        Nonce @relation(fields: [nonceId], references: [id])
  nonceId      Int
  createdAt    DateTime @default(now())
 
  @@id([pubkey])
  @@index([name])
}