12938172
Programmer
- Jan 23, 2008
- 4
Hey guys,
I am working on my table structure and am alittle stuck on what to do. The user has the ability to reg himself, and if he doesnt then his details wont be saved but his transaction will. Now, when I store the transactions for regged and unregged users should I store them in different tables ? See the tables below:
User Table
UserID
Name
Contact
Email
Gender
Registered
username
password
moderator
Event Table
EventID
EventName
MaxNoTickets
SingleTicketPrice
Purchase Table
PurchaseID
UserID
EventID
NoOfTicketsPurchased
TotalPrice
As you can see, the following table would only work if the user was registered. But now the question is how I should store events for unregistered users. So far it looks like I will need to create a seperate table.
I am working on my table structure and am alittle stuck on what to do. The user has the ability to reg himself, and if he doesnt then his details wont be saved but his transaction will. Now, when I store the transactions for regged and unregged users should I store them in different tables ? See the tables below:
User Table
UserID
Name
Contact
Gender
Registered
username
password
moderator
Event Table
EventID
EventName
MaxNoTickets
SingleTicketPrice
Purchase Table
PurchaseID
UserID
EventID
NoOfTicketsPurchased
TotalPrice
As you can see, the following table would only work if the user was registered. But now the question is how I should store events for unregistered users. So far it looks like I will need to create a seperate table.