← all rules

naming-convention

warning

Naming convention violation

Why it's unsafe

An introduced name (table/column/index/constraint/sequence/trigger/schema) does not match the configured naming pattern for its kind.

Safe rewrite

Rename the object to match the convention, or adjust the [naming] pattern in your config.

Example

Try it in the playground →

Unsafe

CREATE TABLE "UserAccounts" (id bigint PRIMARY KEY);

Safe

CREATE TABLE user_accounts (id bigint PRIMARY KEY);

Related