Tenant

Life Cycle

RouteCreateReadUpdateDelete
/register
/app/new-account
/app/:tenant/settings/account
/admin/accounts/:id

Properties

NameTitleTypeDescription
slug *SlugStringURL identifier, e.g. /app/:tenant-slug/dashboard
name *NameString
icon IconStringTenant icon image
subscriptionId SubscriptionTenantSubscription[]
users UsersTenantUsers[]
invitations InvitationsTenantUserInvitation[]Tenant invitation to existing or new user
rows RowsRow[]Custom entity rows created by tenant
logs LogsLog[]Tenant audit trails/events
apiKeys API KeysAPIKey[]

Model

model Tenant {
  id                       String                 @id @default(cuid())
  createdAt                DateTime               @default(now())
  updatedAt                DateTime               @updatedAt
  slug                     String                 @unique
  name                     String
  icon                     String
  subscriptionId           String?
  subscription             TenantSubscription?
  users                    TenantUser[]
  invitations              TenantUserInvitation[]
  entities                 Row[]
  logs                     Log[]
  apiKeys                  ApiKey[]
  createdLinkedAccounts    LinkedAccount[]        @relation("createdByTenant")
  asProviderLinkedAccounts LinkedAccount[]        @relation("providerTenant")
  asClientLinkedAccounts   LinkedAccount[]        @relation("clientTenant")
}

cookies.titleSmall

cookies.descriptionSmall shared.learnMore.