Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "decorator/Generated"

Index

Functions

Functions

Generated

  • Generated(strategy?: "increment" | "uuid"): Function
  • Marks a column to generate a value on entity insertion. There are two types of generation strategy - increment and uuid. Increment uses a number which increases by one on each insertion. Uuid generates a special UUID token.

    Note, some databases do not support non-primary generation columns.

    Parameters

    • Default value strategy: "increment" | "uuid" = "increment"

    Returns Function

Generated using TypeDoc