Guides
Properties
Properties define the shape of data on entity types and relationships. Each property has a name, data type, and optional constraints.
Data types
| Type | Description | Example value |
|---|---|---|
String | UTF-8 text | "hello" |
Integer | Whole number | 42 |
Float | Decimal number | 3.14 |
Boolean | True or false | true |
Date | Calendar date (no time) | 2024-01-15 |
DateTime | Date + time (UTC) | 2024-01-15T09:30:00Z |
Duration | Time span (ISO 8601) | P1Y2M3DT4H |
GeoPoint | Latitude/longitude pair | { "lat": 48.8, "lon": 2.3 } |
Password | Hashed credential field | (exported as String with a write-only annotation) |
List | Ordered array of a single item type | ["a", "b"] |
Enum | String constrained to a fixed set of values | "active" |
Required
Mark a property as Required to indicate it must always be present. This is reflected in exports — Prisma marks it non-nullable, JSON Schema adds it to required, and GraphQL removes the ? / adds !.
Enums
Enable Enum on any String property to restrict values to a fixed set. Click Add value to add each allowed string. This generates dedicated enum types in Prisma (enum block), GraphQL (enum type), Drizzle (pgEnum), SQLAlchemy (Python enum.Enum), and JSON Schema (enum array).
List item type
When the data type is List, select the Item type — the type of each element in the array (e.g. a list of String or a list of Integer).
Description
Add a description to document what the property represents. Descriptions appear in the generated HTML docs export and in the API response for entity types.
Property order
Drag and drop properties in the panel to reorder them. The order is preserved across all export formats.
Inherited properties
When an entity type has a parent, inherited properties appear in the panel with a source badge. They cannot be edited or deleted from the child — make changes on the parent type.