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"
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.