In case of generating relation with table named in snake_case the type isn`t generated properly.
To check you can specify the table with snake_case in relation field, for example with pgm:
pgm.createTable('some_table', { ..., some_field_id: { type: 'uuid', notNull: true, references: '"another_table"(id)', })
another_table type reference won`t generated properly.
To convert it was used the next command
yarn run pal schema camel-case --schema=<path to my schema>
In case of generating relation with table named in snake_case the type isn`t generated properly. To check you can specify the table with snake_case in relation field, for example with pgm:
pgm.createTable('some_table', { ..., some_field_id: { type: 'uuid', notNull: true, references: '"another_table"(id)', })
another_table type reference won`t generated properly.
To convert it was used the next command
yarn run pal schema camel-case --schema=<path to my schema>