Pikbase Docs
Open console (opens the console)
Esc

Type to search.

Build

Schema Manager API

Manage definitions and properties through the schema service contract.

Contract source@gsb-core/mcp-docs:getDefDocs

Overview

The GSB Schema Management API provides a comprehensive set of operations for managing entity definitions (data tables) in your GSB applications. All operations require authentication via a token, and optionally accept a tenant code.

Key Concepts

  1. Entity Definition: Represents a data table in the database
  2. Property: Represents a column in a data table
  3. Property Definition: Defines the data type and behavior of properties
  4. References: Define relationships between entities

Available Documentation

Each method below has its own reference page under /guides/schema-manager/. MCP and CLI clients read the same text through the getSchemaManagerDocs and inspectSchemaDocs tools.

Entity Definition Management

Property Management

Best Practices

  1. Entity Definition Naming

    • Use PascalCase for entity names
    • Use singular nouns
    • Be descriptive but concise
    • Avoid special characters
    • Start with a letter
  2. Property Naming

    • Use camelCase for property names
    • Be descriptive
    • Use consistent naming patterns
    • Prefix boolean properties with 'is' or 'has'
  3. Schema Design

    • Normalize appropriately
    • Use references instead of duplicating data
    • Add appropriate indexes
    • Set searchable fields
    • Define required fields
    • Set appropriate field lengths