import {DatabaseParams} from "../interfaces/DatabaseParams"; import {TableCreateParams} from "../interfaces/TableCreateParams"; import {Relation} from "../interfaces/Relation"; import {IJoinTable} from "../interfaces/JoinTableInterface"; export namespace System { export const TABLES : Map = new Map(); export const TABLES_NAMES : Map = new Map(); export const EVENT_HANDLERS : Map = new Map(); export const VALIDATORS : Map< Object, Set< Map boolean, message: string }> > > = new Map(); export const TRANSFORMS : Map any>> = new Map(); export const MIGRATION_TABLES : Set = new Set() export let DATABASE_CONNECTION_DATA : DatabaseParams; export const TABLES_PRIORITY : Map = new Map() export const TABLES_SETTINGS : Map = new Map(); export const SOFT_DELETE_COLUMNS : Map = new Map(); export const BUILD_SCHEMA : Map> = new Map(); export const JOIN_TABLES : Set = new Set(); export const RENAMED_COLUMN : Set<{ target: any, propertyKey: string, oldName: string }> = new Set(); export const MANY_TO_ONE : Set = new Set(); export const ONE_TO_MANY : Set = new Set(); export const MANY_TO_MANY : Set = new Set(); export const MAPPING_CACHE = new Map>(); }