Skip to content
bitzorcas
EN

Concept

Entity Inheritance Hierarchy

Four-level entity tree with domain contract interfaces for tenant isolation, soft delete, and auditing.

Last updated

Overview

The entity inheritance hierarchy diagram shows the four-level entity tree: EntityBase provides the Snowflake ID primary key; TenantEntityBase adds multi-tenant isolation; BizEntityBase composes soft delete, auditing, and optimistic concurrency; WorkflowEntityBase extends business entities with serial IDs and flow state tracking.

Key takeaways

  • EntityBase provides only a Snowflake ID string — minimal footprint for all entities
  • ITenantEntity ensures every tenant-scoped entity carries TenantId for data isolation
  • IAuditableEntity adds create/modify timestamps and operator tracking including impersonation
  • IConcurrencyTracked uses a Version long field for optimistic locking