UNPKG

@junkawasaki/kawadb-orm

Version:

TypeScript ORM for KawaDB with KSQL support - works in Web and Electron environments

35 lines (34 loc) 945 B
/** * カラムデコレータ */ import { DataType } from '../types/EntityTypes'; interface ColumnOptions { type?: DataType | string; nullable?: boolean; primaryKey?: boolean; autoIncrement?: boolean; defaultValue?: any; unique?: boolean; index?: boolean; } /** * カラムデコレータ */ export declare function Column(options?: ColumnOptions): (target: any, propertyKey: string) => void; /** * プライマリキーデコレータ */ export declare function PrimaryKey(): (target: any, propertyKey: string) => void; /** * 自動インクリメントデコレータ */ export declare function AutoIncrement(): (target: any, propertyKey: string) => void; /** * ユニークデコレータ */ export declare function Unique(): (target: any, propertyKey: string) => void; /** * インデックスデコレータ */ export declare function Index(): (target: any, propertyKey: string) => void; export {};