Entity tenant

An isolated customer organisation.

pii: none

Properties

PropertyValue
ownerplatform

Subject areas: Auth, Billing

Attributes

#NameTypeNullDefaultKeyTermsDescription
1idbigintnoPK
2slugtext(63)noUQ
3nametext(200)no
4created_attimestamptznoexpr "now()"

Keys

KindNameAttributes
primarypk_tenantid
uniqueuq_tenant_slugslug

Relationships

NameRoleOther entityCardinalityAttributesIdentifyingOn deleteOn update
api_key_tenantparentapi_keyone to manyapi_key.tenant_id -> tenant.idnocascadeno_action
invoice_line_tenantparentinvoice_lineone to manyinvoice_line.tenant_id -> tenant.idnocascadeno_action
invoice_tenantparentinvoiceone to manyinvoice.tenant_id -> tenant.idnocascadeno_action
membership_tenantparentmembershipone to manymembership.tenant_id -> tenant.idyescascadeno_action
subscription_tenantparentsubscriptionone to manysubscription.tenant_id -> tenant.idnocascadeno_action
user_tenantparentuserone to manyuser.tenant_id -> tenant.idnocascadeno_action

Physical

lite (sqlite): main.tenant

#NameTypeNullDefaultIdentityCollationAttributeComment
1idintegernoby_defaultid
2slugtextnoslug
3nametextnoname
4created_attextnoexpr "CURRENT_TIMESTAMP"created_at

pg (postgresql): app.tenant

An isolated customer organisation.

#NameTypeNullDefaultIdentityCollationAttributeComment
1idbigintnoalwaysid
2slugvarchar(63)noslug
3namevarchar(200)noname
4created_attimestamp with time zonenoexpr "now()"created_at