Schema Format

Simple and Clean

BlazeKit uses a super simple format for defining your models. If you've used Prisma or Drizzle before, it will feel very familiar — but even lighter.

Defining a Model

A model starts with the keyword model followed by the model name and a block that defines its fields.

schema.blaze

model User {
  name: string
  email: string
  age: number
}

Each field inside the model has two parts:

  • Field Name — the name of the property (e.g., name).
  • Type — the data type of the property (e.g., string or number).

Supported Types

BlazeKit currently supports the following types:

  • string
  • number
  • boolean
  • date (for Date objects)
  • object (for nested structures)
  • array (for arrays of values)

Example with Multiple Models

schema.blaze

model User {
  name: string
  email: string
}

model Post {
  title: string
  content: string
  published: boolean
}

Quick Rules

  • Model names should start with an uppercase letter.
  • Field names should be camelCase.
  • No semicolons, commas, or extra symbols needed.
  • One type per field — no unions or optionals yet.