A database row is a storage shape. An account response is a public contract. Returning the row directly can expose password records or private flags when the storage schema grows, even when the endpoint chose the correct account.
Construct the response from fields the caller is allowed to receive. An allowlist makes a newly added private column stay private by default. Deleting one known secret from a copied row leaves every other storage field in the response. These labs preserve the account identifier, name, tenant and role while withholding the password field. The hidden seed changes the record contents and order. Projection complements authorization: a smaller response still can't justify returning another account's record. In production, define this boundary in a serializer or response schema and apply it to success, failure and export paths.
Return approved account fields without leaking private storage columns.