Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | editrecords | CREATE TABLE `editrecords` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `test_id` int(11) NOT NULL,
- `user_id` int(11) NOT NULL,
- `date` datetime DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `test_id` (`test_id`),
- KEY `user_id` (`user_id`),
- CONSTRAINT `editrecords_ibfk_1` FOREIGN KEY (`test_id`) REFERENCES `tests` (`id`) ON DELETE CASCADE,
- CONSTRAINT `editrecords_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement