careful-honey-27437
05/03/2025, 1:14 AMbrief-egg-61061
05/03/2025, 1:14 AMbrief-egg-61061
05/03/2025, 1:14 AMUser
, Document
, Folder
, AccessKey
. [Ory Keto Concepts: Namespaces](https://www.ory.sh/docs/keto/concepts/namespaces) This convention helps maintain consistency in your permission model. For example, in the document store example provided in the documentation, the namespaces are defined as: typescript import { Namespace, Context } from "@ory/keto-namespace-types" class User implements Namespace {} class Document implements Namespace {} class Folder implements Namespace {}
It's worth noting that while namespaces should be singular, relationships within a namespace should be named with plural forms to indicate many-to-many relationships between subjects and objects.