UNPKG

axiodb

Version:

A blazing-fast, lightweight, and scalable nodejs package based DBMS for modern application. Supports schemas, encryption, and advanced query capabilities.

36 lines 1.49 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SchemaTypes = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ const joi_1 = __importDefault(require("joi")); // Create an object to hold all Joi types under the name SchemaTypes exports.SchemaTypes = { string: joi_1.default.string, number: joi_1.default.number, boolean: joi_1.default.boolean, object: joi_1.default.object, array: joi_1.default.array, date: joi_1.default.date, binary: joi_1.default.binary, func: joi_1.default.func, ref: joi_1.default.ref, any: joi_1.default.any, // Add additional types from Joi if needed alphanum: joi_1.default.string().alphanum, email: joi_1.default.string().email, guid: joi_1.default.string().guid, ip: joi_1.default.string().ip, uri: joi_1.default.string().uri, max: (limit) => joi_1.default.number().max(limit), min: (limit) => joi_1.default.number().min(limit), length: (limit) => joi_1.default.string().length(limit), pattern: (regex) => joi_1.default.string().pattern(regex), required: () => joi_1.default.required(), optional: () => joi_1.default.optional(), allow: (values) => joi_1.default.allow(values), valid: (values) => joi_1.default.valid(values), }; //# sourceMappingURL=DataTypes.models.js.map