UNPKG

507 BTypeScriptView Raw
1/**
2 * Marks a column to generate a value on entity insertion.
3 * There are three types of generation strategy - increment, uuid and rowid (cockroachdb only).
4 * Increment uses a number which increases by one on each insertion.
5 * Uuid generates a special UUID token.
6 * Rowid supports only in CockroachDB and uses `unique_rowid()` function
7 *
8 * Note, some databases do not support non-primary generation columns.
9 */
10export declare function Generated(strategy?: "increment" | "uuid" | "rowid"): Function;