UNPKG

@knestjs/core

Version:

Knestjs search to be a Nestjs ORM in which you write the models once and only once. This is done creating migrations automatically from the models that you create.

24 lines (17 loc) 468 B
export type ColumnType = 'int' | 'float' | 'double' | 'char' | 'varchar' | 'text' | 'date' | 'datetime' | 'time' export interface IntColumnConfig { type: 'int' autoincrement?: boolean } export interface FloatColumnConfig { type: 'float', precision: number, scale: number } export interface CharColumnConfig { type: 'char' | 'varchar' length: number } export interface DateTimeColumnConfig { type: 'datetime' | 'date' | 'time' }