Re: staff table-howo to connect with bookings and bus. users table
Posted by: Rick James
Date: March 03, 2014 06:05PM

Some suggestions...

> `Type_id` enum('1','2','3','4','5') NOT NULL,

May as well make it a TINYINT UNSIGNED NOT NULL -- takes the same amount of space, and would break when type #6 comes along.

> PRIMARY KEY (`Type_id`),
> UNIQUE KEY `Type_id_UNIQUE` (`Type_id`)

A PRIMARY KEY is a UNIQUE KEY, so the latter is totally redundant.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.