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.83 kB
import { Model } from '../lib'; export declare class User extends Model { constructor(); } export declare class Post extends Model { constructor(); } export declare class PostUser 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; }; status: { anyOf: { type: string; }[]; }; created_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updated_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deleted_at: { 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; }; status: { anyOf: { type: string; }[]; }; created_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updated_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deleted_at: { 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; }[]; }; created_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updated_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deleted_at: { 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; }[]; }; created_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; updated_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; deleted_at: { anyOf: ({ type: string; format?: undefined; } | { type: string; format: string; })[]; }; }; }; };