# X_ENTITY_TENANT_UNDECLARED

## Means

a child of a tenant-owned table has no tenant

## Typical cause

an entity with no tenant column references, directly or through other entities, an entity that has one, and declares no shared reason, so a row of one tenant is readable by id from another

## Fix

`add orgId: uuid().tenant() to the entity, then x db gen '<table> tenant'; or declare shared: '<why it belongs to no tenant>'`

[Entity and database](/error-codes#entity-and-database)
