# ContractJson.domain property · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.contractjson.domain/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

**Signature:**

```typescript
readonly domain?: {
        readonly namespaces?: Record<string, {
            readonly models?: Record<string, {
                readonly fields?: Record<string, unknown>;
                readonly relations?: Record<string, {
                    readonly cardinality?: string;
                    readonly to?: {
                        readonly model?: string;
                    };
                    readonly on?: {
                        readonly localFields?: readonly string[];
                        readonly targetFields?: readonly string[];
                    };
                }>;
                readonly storage?: {
                    readonly table?: string;
                    readonly fields?: Record<string, {
                        readonly column?: string;
                    }>;
                };
            }>;
        }>;
    };
```

