SchemaJS
  • Getting Started
    • Preview
    • Setting up your environment
    • Hello World
  • Fundamentals
    • TypeScript Support
    • Module Imports
    • Custom Queries
    • Hooks
  • Reference Guides
    • SchemaJS Global
      • Table
      • Column
      • DataTypes
      • QueryBuilder
      • query
      • rawInsert
      • insert
      • print
    • Examples
Powered by GitBook
On this page
  1. Reference Guides
  2. SchemaJS Global

DataTypes

The DataTypes enum in SchemaJS defines the supported data types for columns in a table. It is used to specify what kind of data each column can hold, such as strings or boolean values. Enums like this provide a clear and type-safe way of working with predefined values, ensuring consistency and avoiding invalid types.

export enum DataTypes {
    Uuid = "Uuid",
    String = "String",
    Boolean = "Boolean",
    Number = "Number"
}
PreviousColumnNextQueryBuilder

Last updated 7 months ago