Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Suggested best setup for "Code" database table column

Questions related to installing, updating, setting up and configuring
musicollect
Posts: 1
Joined: Wed Jun 28, 2023 11:43 am
nuBuilder Version: 4.5

Suggested best setup for "Code" database table column

Unread post by musicollect »

Hello,

I'm a new user of nuBuilder using it for a project connecting to existing mySQL database tables.
Each table already has a primary key called "id", either int (11) or bigint (20). I've seen various references suggesting also using a database column called XXX_code (XXX = 3 character prefix taken from table name), where this "code" column is necessary within nuBuilder for cross-table lookups etc.

My question is, does this "code" column need to have a database index applied to it or is the primary key (id) used ?

Thanks for any advice

Greg
Post Reply