> Plurals—use the more natural collective term where possible instead. For example staff instead of employees or people instead of individuals.
> Where possible avoid simply using id as the primary identifier for the table.
> Plurals—use the more natural collective term where possible instead. For example staff instead of employees or people instead of individuals.
> Where possible avoid simply using id as the primary identifier for the table.
The second one is simply wrong because it burns brain cells when you come back to debug or extend something a year later and nobody memorizes the prikey of table production_quality_results, is it the serial number of the mfgrd object or the timestamp of the QAQC inspection or the serial number of the inspection activity or ... and when you look at column names in table 131 is drivers_license_id a foreign key to a row in the drivers_license table or just a raw store of data, like this is just where you store it in the system? This is especially hilarious if your FK and data source are similar bigint type, like a bigint to connect a FK to a prikey or is your component serial number literally a bigint itself, assuming the prikey is the data itself without dereferencing it will be a hilarious bug, "it seems serial number 10 doesn't exist in our assembly line" "Whoops thats actually row 10 of the production table, serial number whatevs".
The indexes set out against a table can generally be accessed with a query making it very easy to work out what existing index suits your use case best.