Last active
August 23, 2018 01:55
-
-
Save anggadarkprince/71927e04bb8e6fe9cd2932137bdf31a0 to your computer and use it in GitHub Desktop.
TCI database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `activities` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`title` varchar(45) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
); | |
INSERT INTO `activities` VALUES (1,'Act 1'),(2,'Act 2'); | |
CREATE TABLE `activity_details` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`id_activity` varchar(45) DEFAULT NULL, | |
`type` varchar(45) DEFAULT NULL, | |
`weight` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
); | |
INSERT INTO `activity_details` VALUES (1,'1','coding',2),(2,'1','design',4),(3,'2','coding',1),(4,'2','design',3),(5,'2','design',4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment