Should I Use Two Auto-Increment Columns for My Helpdesk Project?

0
3
Asked By TechGuru42 On

I'm currently working on a school project where I need to create a helpdesk website. I have a users table with an auto-incremented ID for each user, but I also want to add a client number that would also auto-increment. I'm using phpMyAdmin with MariaDB. I've looked into some AI suggestions already, but I'd really prefer insights from someone with real-world experience.

3 Answers

Answered By DevJunkie53 On

I was thinking of the same thing! Using the auto-generated ID for queries keeps it simple. But I get that a unique client number could enhance the user experience too. Maybe just have the client number for identification and keep the ID for backend operations?

Answered By DataDabbler77 On

Why not just use the table's auto-incremented ID as the client number, but format it to a 10-digit number? That could make things easier.

Answered By CodeWhiz88 On

Are you treating clients and users as separate entities? It sounds like they could be, and that might simplify things for you.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.