@adonisjs/lucid
Version:
SQL ORM built on top of Active Record pattern
26 lines (25 loc) • 774 B
TypeScript
/**
* Known internal type identifiers that can be customized via schema rules
*/
export declare const INTERNAL_TYPES: {
readonly NUMBER: "number";
readonly BIGINT: "bigint";
readonly DECIMAL: "decimal";
readonly BOOLEAN: "boolean";
readonly STRING: "string";
readonly DATE: "date";
readonly TIME: "time";
readonly DATE_TIME: "DateTime";
readonly BINARY: "binary";
readonly JSON: "json";
readonly JSONB: "jsonb";
readonly UUID: "uuid";
readonly ENUM: "enum";
readonly SET: "set";
readonly UNKNOWN: "unknown";
};
/**
* Mapping from database types to internal type identifiers.
* This mapping covers PostgreSQL, MySQL, SQLite, and MSSQL types.
*/
export declare const DATA_TYPES_MAPPING: Record<string, string>;