UNPKG

miter

Version:

A typescript web framework based on ExpressJs based loosely on SailsJs

25 lines (24 loc) 866 B
/// <reference types="sequelize" /> import { DataTypeAbstract, DefineAttributeColumnReferencesOptions, DefineValidateOptions } from 'sequelize'; export declare type ReferenceCallbackAction = 'CASCADE' | 'RESTRICT' | 'SET DEFAULT' | 'SET NULL' | 'NO ACTION'; export declare type PropMetadata = { columnName?: string; type?: string | DataTypeAbstract; defaultValue?: any; validate?: DefineValidateOptions; unique?: boolean | string | { name: string; msg: string; }; values?: string[]; allowNull?: boolean; primaryKey?: boolean; autoIncrement?: boolean; comment?: string; references?: DefineAttributeColumnReferencesOptions; onUpdate?: ReferenceCallbackAction; onDelete?: ReferenceCallbackAction; get?: () => any; set?: (val: any) => void; }; export declare const PropMetadataSym: symbol;