Linked Account
- Defines a relationship between 2 tenants so they could share resources, such as Custom Entity Rows.
- Has 1 Tenant provider and 1 Tenant client.
Life Cycle
Route | Create | Read | Update | Delete |
---|---|---|---|---|
/app/:tenant/settings/linked-accounts |
Properties
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[]
}