UNPKG

tspace-mysql

Version:

Tspace MySQL is a promise-based ORM for Node.js, designed with modern TypeScript and providing type safety for schema databases.

255 lines (254 loc) 5.88 kB
import { Model } from '../../src/lib'; export declare const pattern: 'snake_case' | 'camelCase'; export declare class User extends Model { constructor(); } export declare class Post extends Model { constructor(); } export declare class PostUser extends Model { constructor(); } export declare class UserDefault extends Model { constructor(); } export declare class PostDefault extends Model { constructor(); } export declare class PostUserDefault extends Model { constructor(); } export declare const userSchemaObject: { type: string; properties: { id: { type: string; }; uuid: { anyOf: { type: string; }[]; }; email: { type: string; }; name: { anyOf: { type: string; }[]; }; username: { anyOf: { type: string; }[]; }; password: { type: string; }; createdAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updatedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deletedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; }; }; export declare const userSchemaArray: { type: string; items: { type: string; properties: { id: { type: string; }; uuid: { anyOf: { type: string; }[]; }; email: { type: string; }; name: { anyOf: { type: string; }[]; }; username: { anyOf: { type: string; }[]; }; password: { type: string; }; createdAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updatedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deletedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; }; }; }; export declare const postSchemaObject: { type: string; properties: { id: { type: string; }; uuid: { anyOf: { type: string; }[]; }; userId: { anyOf: { type: string; }[]; }; title: { type: string; }; subtitle: { anyOf: { type: string; }[]; }; description: { anyOf: { type: string; }[]; }; createdAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updatedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deletedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; }; }; export declare const postSchemaArray: { type: string; items: { type: string; properties: { id: { type: string; }; uuid: { anyOf: { type: string; }[]; }; userId: { anyOf: { type: string; }[]; }; title: { type: string; }; subtitle: { anyOf: { type: string; }[]; }; description: { anyOf: { type: string; }[]; }; createdAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updatedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deletedAt: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; }; }; };