Linked Account

Life Cycle

RouteCreateReadUpdateDelete
/app/:tenant/settings/linked-accounts

Properties

NameTitleTypeDescription
providerTenantId *Tenant ProviderTenant
clientTenantId *Tenant ClientTenant
status *StatusLinkedAccountStatusPENDING, LINKED, or REJECTED

Model

model LinkedAccount {
  id                String   @id @default(cuid())
  createdAt         DateTime @default(now())
  createdByUserId   String
  createdByUser     User     @relation(fields: [createdByUserId], references: [id], onDelete: Cascade)
  createdByTenantId String
  createdByTenant   Tenant   @relation("createdByTenant", fields: [createdByTenantId], references: [id], onDelete: Cascade)
  providerTenantId  String
  providerTenant    Tenant   @relation("providerTenant", fields: [providerTenantId], references: [id], onDelete: Cascade)
  clientTenantId    String
  clientTenant      Tenant   @relation("clientTenant", fields: [clientTenantId], references: [id], onDelete: Cascade)
  status            Int
  rows              Row[]
}

cookies.titleSmall

cookies.descriptionSmall shared.learnMore.