UNPKG

stackpress

Version:

Incept is a content management framework.

20 lines (19 loc) 849 B
import Create from '@stackpress/inquire/Create'; import type Column from '../schema/spec/Column.js'; import type Model from '../schema/spec/Model.js'; export declare const typemap: Record<string, string>; export default function schema(model: Model, onDelete?: 'CASCADE' | 'SET NULL' | 'RESTRICT', onUpdate?: 'CASCADE' | 'SET NULL' | 'RESTRICT'): Create<unknown>; export declare function field(column: Column, schema: Create): Create<unknown> | undefined; export declare function clen(column: Column): [number, number]; export declare function numdata(column: Column): { step: any; minmax: [number, number]; minIntegerLength: number; maxIntegerLength: number; minDecimalLength: number; maxDecimalLength: number; stepIntegerLength: any; stepDecimalLength: any; integerLength: number; decimalLength: number; };