Give us username-independent IDs
Posted: 2021-01-21 16:50
Hi,
using the username as primary key is understandable
But as this might change and has some meaning to it, but I strongly suggest and wish for, that
you also give us an independent primary key (ID) that can never be changed (by the user). Something like an autoincrement unique integer value (in the users and usergroups table).
Currently it's a problem writing the username to some other table - as that name might change. If we could simply write the ID this would never be a problem and data integrity would always be there (as long as we set some constraints in the db ...) - but I am sure you get what I mean.
Olaf
using the username as primary key is understandable
But as this might change and has some meaning to it, but I strongly suggest and wish for, that
you also give us an independent primary key (ID) that can never be changed (by the user). Something like an autoincrement unique integer value (in the users and usergroups table).
Currently it's a problem writing the username to some other table - as that name might change. If we could simply write the ID this would never be a problem and data integrity would always be there (as long as we set some constraints in the db ...) - but I am sure you get what I mean.
Olaf