name

The name of the column.

If not specified, the name will be generated by a naming strategy. This naming strategy can be configured by KSP option ktorm.dbNamingStrategy, which accepts the following values:

  • lower-snake-case (default): generate lower snake-case names, for example: userId --> user_id.

  • upper-snake-case: generate upper snake-case names, for example: userId --> USER_ID.

  • Class name of a custom naming strategy, which should be an implementation of org.ktorm.ksp.spi.DatabaseNamingStrategy.