Entity Types
Define custom data schemas with typed fields, validation, and multiple views.
10 min read
Entity Types
Entity types are the foundation of WISEROWS's data model. Think of them as custom database tables with a built-in UI -- you define the schema, and WISEROWS automatically generates table views, kanban boards, galleries, calendars, forms, and API endpoints.
Whether you're tracking blog posts, leads, products, keywords, or any other data shape, entity types give you a flexible, no-code way to model it all.
Why Entity Types?
Most platforms force you into rigid data models. WISEROWS flips this: you define the shape of your data, and the platform adapts to it.
- No database migrations -- add, remove, or reorder fields at any time
- Instant UI -- every entity type gets four views, inline editing, filtering, and sorting out of the box
- API-first -- every entity type is automatically available via the REST API
- AI-aware -- fields can be auto-generated by AI using context from other fields
- Workflow-ready -- connect entity types to workflows for automated content pipelines
Creating an Entity Type
Open the Schema Builder
Navigate to Schema Builder in the sidebar. This is your central hub for managing all entity types in your project.
Click New Entity Type
Click the New Entity Type button. A configuration panel opens where you define the basics.
Configure the basics
Fill in the core properties:
Property | Description | Example |
|---|---|---|
| Name | Singular display name | Blog Post |
| Plural Name | Used in navigation and headings | Blog Posts |
| Slug | URL-friendly identifier (auto-generated) | blog-post |
| Icon | Lucide icon for sidebar and headers | file-text |
| Color | Optional accent color | #3b82f6 |
| Description | What this entity type represents | Articles published on the company blog |
Add fields
Define the data shape by adding fields. Each field has a name, type, and optional validation rules. See Field Types for the full reference.
Set the title field
Choose which field acts as the title -- this is the primary display value shown in tables, kanban cards, search results, and references.
blog-post, lead, seo-keyword.Schema Properties
Every entity type has these configurable properties:
namestringrequiredslugstringrequiredpluralNamestringrequireddescriptionstringiconstringrequiredcolorstringtitleFieldstringrequireddefaultViewstringFields
Each entity type has an ordered list of field definitions that make up its schema. Fields are the columns in your table, the attributes on your cards, and the inputs in your forms.
Every field has these properties:
Property | Type | Description |
|---|---|---|
| Name | string | Display label shown in the UI |
| Slug | string | Programmatic identifier used in the API, formulas, and AI prompts |
| Type | FieldType | One of the 18 supported field types |
| Required | boolean | Whether the field must have a value |
| Config | object | Type-specific configuration (options for select, min/max for numbers, etc.) |
| Show in Table | boolean | Whether this field appears as a column in the table view |
| Sort Order | number | Display position in the schema |
Adding and Reordering Fields
In the Schema Builder, click Add Field on your entity type to add a new field. Select the field type from the dropdown, then configure its properties.
Drag fields to reorder them. The order determines how they appear in table columns, forms, and the API response.
Field Slug Rules
Field slugs must:
- Start with a lowercase letter
- Contain only lowercase letters, numbers, and underscores
- Match the pattern:
^[a-z][a-z0-9_]*$
Examples: title, meta_description, price_usd, publish_date
Sidebar Configuration
Control how and where the entity type appears in the application sidebar:
Setting | Description |
|---|---|
| Show in Sidebar | Toggle visibility on or off |
| Sidebar Section | Group under a section (e.g., Data, Content, Marketing, SEO) |
| Sort Order | Position within the section (lower numbers appear first) |
Advanced Configuration
Entity types support several advanced features that integrate with WISEROWS's broader platform capabilities.
Content Generation
Enable AI-powered content generation on an entity type to let users generate field values with a single click. Configure a prompt template that references field slugs, and the AI fills in the blanks.
This connects to WISEROWS's content generation system and is especially powerful when combined with Content Buckets.
Status Workflows
Attach a status workflow to an entity type to define a progression of stages (e.g., Draft, Review, Published, Archived). This powers the kanban view and enables workflow automations.
Data Quality Rules
Configure data quality checks that validate entities against custom rules. This is useful for SEO readiness checks, content completeness scoring, and compliance validation.
Meta Fields
Enable meta fields to automatically add SEO-related fields (meta title, meta description, canonical URL, etc.) to the entity type. These are used by the programmatic SEO system and content publishing workflows.
API Access
Every entity type is automatically available via the Entities API. No additional configuration needed.
You can:
- List entities with filtering, sorting, and pagination
- Create entities with validation
- Update individual fields or entire entities
- Delete entities (soft delete with optional hard delete)
# List all entities of type "blog-post"
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://your-project.convex.site/api/v1/entities?entityType=blog-post
# Create a new blog post
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"entityTypeSlug": "blog-post", "fields": {"title": "Getting Started", "status": "draft"}}' \
https://your-project.convex.site/api/v1/entities
