# test.govlab/docs/core/formatters/system.fixture.ts

> 30 lines of code and 1 definition.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-docs-core-formatters-system-fixture-ts
Source text: https://banes-lab.com/source/testing/test.govlab/docs/core/formatters/system.fixture.ts.txt

Listed in [test.govlab/docs/core/formatters](https://banes-lab.com/api/source/testing/test.govlab/docs/core/formatters.md), after [test.govlab/docs/core/formatters/readme.section.formatter.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/formatters/readme.section.formatter.test.ts.md) and before [test.govlab/docs/core/formatters/system.formatter.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/formatters/system.formatter.test.ts.md).

## Definitions

- `SYSTEM_MODEL` (lexical_declaration, line 3, exported)

## Contained in

- [test.govlab/docs/core/formatters](https://banes-lab.com/anatomy/testing/folder-testing-test-govlab-docs-core-formatters.md)

## Source

```typescript
import type { SystemModel } from "@govlab/docs/types/system.types.ts";

export const SYSTEM_MODEL: SystemModel = {
    components: [
        { id: "ui", kind: "external", label: "Browser UI" },
        { id: "api", kind: "service", label: "Backend API" },
        { id: "db", kind: "db", label: "Database" },
    ],
    deployment: [
        { dependsOn: ["pg", "redis"], id: "app", kind: "app", label: "app" },
        { id: "pg", kind: "db", label: "postgres" },
        { id: "redis", kind: "cache", label: "redis" },
    ],
    dispatch: [
        { key: "html", table: "router", target: "HtmlProvider" },
        { key: "plain", table: "router", target: "TextProvider" },
    ],
    entities: [
        { fields: [{ name: "id" }, { name: "email" }], id: "users", label: "users" },
        { fields: [{ name: "id" }, { name: "userId" }], id: "posts", label: "posts" },
    ],
    entityRelations: [{ from: "posts", kind: "aggregation", label: "author", to: "users" }],
    messages: [
        { from: "ui", name: "request", to: "api" },
        { from: "api", name: "query", to: "db" },
    ],
    name: "Example",
    runtimeDeferred: ["executed sequence ordering", "FSM transition paths"],
    security: [{ decision: "bearer token", enforcedBy: "api", id: "auth", label: "auth" }],
    trustBoundaries: [{ components: ["api", "db"], id: "server", label: "Server" }],
};
```
