name

The name of the table.

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: UserProfile --> user_profile.

  • upper-snake-case: generate upper snake-case names, for example: UserProfile --> USER_PROFILE.

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