Skip to content

Instantly share code, notes, and snippets.

@anggadarkprince
Last active August 23, 2018 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anggadarkprince/71927e04bb8e6fe9cd2932137bdf31a0 to your computer and use it in GitHub Desktop.
Save anggadarkprince/71927e04bb8e6fe9cd2932137bdf31a0 to your computer and use it in GitHub Desktop.
TCI database
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