Will it not be right to create a field of unique values in a SQL table? Will the table below work normally? Relational DB
Here is:
CREATE TABLE `dev_users` ( `user_id` int(10) unsigned NOT NULL, `part_id` int(10) unsigned NOT NULL, `status` enum('1','2','3','0') NOT NULL DEFAULT '0' , `order` int(11) unsigned NOT NULL, PRIMARY KEY (`user_id`,`part_id`,`order`), KEY `user_id` (`user_id`) USING BTREE, KEY `part_id` (`part_id`) USING BTREE, CONSTRAINT `part_id` FOREIGN KEY (`part_id`) REFERENCES `part_develop` (`part_id`), CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `account` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;