UNPKG

es-entity

Version:

ORM framework for Node js based on Ecmascript 6 and Typescript.

18 lines (14 loc) 461 B
import { ColumnType, IEntityType } from './types.js'; class FieldMapping { fieldName: string; colName: string; columnType: IEntityType<ColumnType>; primaryKey: boolean = false; constructor(fieldName: string, colName: string, columnType: IEntityType<ColumnType>, primaryKey: boolean) { this.fieldName = fieldName; this.colName = colName; this.columnType = columnType; this.primaryKey = primaryKey; } } export default FieldMapping;