i want to design a users table with the following fields in hypertable database:
rowkey : (unique Guid)
username : (unique in the table)
email : (unique in the table)
passwordHash : (string field)
passwordSalt : (string field)
firstName : (string field)
lastName : (string field)
now the rowkey is the id of the user and i refer to this id a lot of stuff that belong to user (i understand that in hypertable the only auto primary key options is guid) the reason i won't use the username as the rowkey is because the username can be changed if changed occurs i will have to update a lot of stuff in the entire database. same role append also to the email field.
now user can login with his username or with his email. so i will need to retrieve entire row by email or by username.
can you help me design this table thanks.