Jump to content

Recommended Posts

Okay, I started over completely with my idea of browsergame, because the mysql-tables sucked and it was terrible to make a code to generate the right value.

 

So my question is: Are these good tables?

 

NATIONS

nation_id

nation_name

nation_capital

nation_money

leader_id

 

PACTS

user_id1

user_id2

pact_type

 

WEAPONS

weapon_id

wepaon_name

weapon_price

 

TECHNOLOGIES

technology_id

technology_name

technology_price

 

REGIONS

region_id

region_name

nation_name

 

RESEARSHED

technology_id

nation_id

 

REGION_WEAPONS

region_id

weapon_id

ammount

 

USERS

user_id

user_name

user_pass

nation_id

leader          <=  "Yes" or "No"

Link to comment
https://forums.phpfreaks.com/topic/161074-good-table/
Share on other sites

So my question is: Are these good tables?

 

Good tables?  That's a bit ambiguous.  Your tables should be normalized to reduce space, eliminate redundant data, and for basic DB organization.  Please read through this article - Database Normalization - and tell me what normal form you think your table is in and how you think you can improve.  What made you question your tables in the first place?

Link to comment
https://forums.phpfreaks.com/topic/161074-good-table/#findComment-850020
Share on other sites

I think it's normalized, although I can't use foreign keys because I used MyIsam as storage engine instead of InnoDB, which is the only one that can handle foreign keys in PhpMyadmin.

 

I just ask this question, because In my previous projects I just started with the code and from time to time I had to change whole the databse.  And I want to make it as much easy as it can.

 

 

Link to comment
https://forums.phpfreaks.com/topic/161074-good-table/#findComment-850047
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.