Skip to main content

Data Model

xTrakt backend services use shared base entities and data access patterns to keep tenant isolation and audit behavior consistent.

Shared Principles

PrincipleBehavior
Tenant isolationTenant data is scoped by TenantId
Audit metadataSave operations populate creator, changer, and timestamp fields
Soft deleteDeleted records use IsDeleted and DeletedWhen flags
Database namingDatabase tables and columns use snake_case; C# properties use PascalCase

Repository Expectations

Repository list and get queries must filter by tenant and exclude soft-deleted records. This is a product security requirement, not only a data access convenience.