from-schema
Version:
Infer TypeScript types from JSON schemas
12 lines (10 loc) • 365 B
TypeScript
import { PostgresColumnBase } from '../../PostgresColumnBase';
export type VarcharColumnModel = PostgresColumnBase & {
readonly type: 'varchar' | 'character varying';
readonly minLength?: number;
readonly maxLength?: number;
readonly pattern?: string;
readonly enum?: string[];
readonly checks?: string[];
readonly default?: string;
};