import { Any, Dictionary, List, TypedKey } from "@mantlebee/ts-core"; import { ITable } from "./interfaces"; /** * Default column ({@link Column}) options. * @prop `nullable` - The column value can be casually `null`. */ export type ColumnOptions = { nullable?: boolean }; /** * Database ({@link IDatabase}) dataset. It is a dictionary where the key is the table ({@link ITable}) key and the value the table rows generated. * Like the {@link Row} type, this type is defined to simplify return types. */ export type Dataset = Record | string, List>; /** * Define a map of table keys and the amount of rows to generate. * It is used by {@link Database} to know how many rows to generate for each table. */ export type RowsCountsMap = Record, number>; export type TableKey = symbol & TypedKey & { readonly description: string };