Skip to content

Commit

Permalink
Moved animals to db
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBThai committed Jul 21, 2024
1 parent 67c3c76 commit 22fd601
Show file tree
Hide file tree
Showing 20 changed files with 597 additions and 822 deletions.
11 changes: 10 additions & 1 deletion secret/CREATE-OWO-TABLES.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CREATE TABLE `alter` (
`footer` varchar(256) DEFAULT NULL,
`author` varchar(256) DEFAULT NULL,
`showAvatar` tinyint(4) NOT NULL DEFAULT '0',
`extra` varchar(1024) DEFAULT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`uid`,`command`,`type`),
CONSTRAINT `alter_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `user` (`uid`)
Expand Down Expand Up @@ -156,6 +157,14 @@ DROP TABLE IF EXISTS `animals`;
CREATE TABLE `animals` (
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`rank` varchar(50) NOT NULL,
`hp` tinyint(4) NOT NULL DEFAULT '0',
`att` tinyint(4) NOT NULL DEFAULT '0',
`pr` tinyint(4) NOT NULL DEFAULT '0',
`wp` tinyint(4) NOT NULL DEFAULT '0',
`mag` tinyint(4) NOT NULL DEFAULT '0',
`mr` tinyint(4) NOT NULL DEFAULT '0',
`description` varchar(2000) NOT NULL,
`alt` varchar(600) NOT NULL,
PRIMARY KEY (`name`),
KEY `fk_animals__animals_rank__rank` (`rank`),
CONSTRAINT `fk_animals__animals_rank__rank` FOREIGN KEY (`rank`) REFERENCES `animals_rank` (`rank`)
Expand Down Expand Up @@ -1703,4 +1712,4 @@ DELIMITER ;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-06-22 15:41:52
-- Dump completed on 2024-07-20 17:47:59
6 changes: 3 additions & 3 deletions secret/OWO-TABLE-DATA.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-06-22 15:41:54
-- Dump completed on 2024-07-20 17:48:25
-- MySQL dump 10.13 Distrib 5.7.42, for Linux (x86_64)
--
-- Host: localhost Database: owo
Expand All @@ -89,7 +89,7 @@ UNLOCK TABLES;

LOCK TABLES `animals` WRITE;
/*!40000 ALTER TABLE `animals` DISABLE KEYS */;
INSERT INTO `animals` VALUES (':bee:','common'),(':beetle:','common'),(':bug:','common'),(':butterfly:','common'),(':snail:','common'),(':crocodile:','epic'),(':elephant:','epic'),(':penguin:','epic'),(':tiger2:','epic'),(':whale:','epic'),(':cat2:','rare'),(':cow2:','rare'),(':dog2:','rare'),(':pig2:','rare'),(':sheep:','rare'),(':baby_chick:','uncommon'),(':chipmunk:','uncommon'),(':mouse2:','uncommon'),(':rabbit2:','uncommon'),(':rooster:','uncommon');
INSERT INTO `animals` VALUES (':bee:','common',1,5,2,3,3,1,'How do bees go to school?\n~ On the school buzz!','bee,wasp'),(':beetle:','common',4,2,2,3,2,2,'Are they all female?','beetle,ladybug'),(':bug:','common',3,2,2,4,2,2,'It\'s a worm.','bug,worm,caterpillar'),(':butterfly:','common',1,1,1,5,5,2,'Why did you throw butter out the window?\n~ To see a butter fly!','butterfly'),(':snail:','common',8,1,2,3,5,1,'The slowest animal, but the toughest in the zoo','snail,slug'),(':crocodile:','epic',3,4,4,2,1,4,'How do you tell the difference between an alligator and an crocodile?\n~ You will see one later and one in a while','crocodile,alligator'),(':elephant:','epic',5,5,3,1,1,3,'They don\'t actually eat peanuts','elephant'),(':penguin:','epic',2,1,2,6,5,2,'The birds that can\'t fly','penguin'),(':tiger2:','epic',4,6,2,1,3,2,'Just a very large kitty','tiger,tiger2,cheetah'),(':whale:','epic',7,1,3,1,2,4,'whale, whale, whale, look what we have here','whale'),(':cat2:','rare',3,1,1,6,3,3,'They shoot lazers.','cat,cat2,kitty,kitten'),(':cow2:','rare',5,4,3,1,1,3,'Some say that they are highly sought-after','cow,cow2'),(':dog2:','rare',4,6,3,1,1,2,'Very loyal and protective','dog,dog2,doggy,puppy,wolf'),(':pig2:','rare',4,2,3,2,2,4,'aka ur mum','pig,pig2'),(':sheep:','rare',5,2,2,3,1,4,'Tastes like cotten candy!','sheep,ram,goat'),(':baby_chick:','uncommon',3,2,3,3,3,2,'chirp chirp! It\'s so cute!','chick,baby_chick'),(':chipmunk:','uncommon',3,5,2,3,2,1,'Don\'t mess with them.','chipmunk,squirrel'),(':mouse2:','uncommon',3,3,2,3,3,2,'~~sqeak~~ squeak!','mouse,mouse2,rat'),(':rabbit2:','uncommon',3,4,2,3,2,2,'There\'s a ton of them.','rabbit,rabbit2,bunny'),(':rooster:','uncommon',3,4,3,2,2,2,'The alarm cluck','chicken,rooster');
/*!40000 ALTER TABLE `animals` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
Expand All @@ -102,4 +102,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-06-22 15:41:54
-- Dump completed on 2024-07-20 17:48:25
Loading

0 comments on commit 22fd601

Please sign in to comment.