Files
ThordekkCore/sql/base/followship_database.sql
T

279 lines
11 KiB
SQL

-- Followship Database Base Schema
-- Creates the followship database with standard TrinityCore update tracking tables
-- and the bot_owners table (moved from characters database, renamed from followship_bot_owners)
CREATE TABLE `updates` (
`name` varchar(200) NOT NULL COMMENT 'filename with extension of the update.',
`hash` char(40) DEFAULT '' COMMENT 'sha1 hash of the sql file.',
`state` enum('RELEASED','CUSTOM','MODULE') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if an update is released or archived.',
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'timestamp when the query was applied.',
`speed` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'time the query takes to apply in ms.',
PRIMARY KEY (`name`) USING BTREE,
UNIQUE KEY `unique_index` (`name`,`hash`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='List of all applied updates in this database.';
CREATE TABLE `updates_include` (
`path` varchar(200) NOT NULL COMMENT 'directory to include. $ means relative to the source directory.',
`state` enum('RELEASED','CUSTOM','MODULE') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if the directory contains released or archived updates.',
PRIMARY KEY (`path`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='List of directories containing update files.';
INSERT INTO `updates_include` (`path`, `state`) VALUES
('$/sql/updates/followship', 'RELEASED');
CREATE TABLE `bot_owners` (
`bot_id` INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`bot_guid` BIGINT UNSIGNED NOT NULL,
`bot_entry` INT UNSIGNED NOT NULL,
`player_guid` BIGINT UNSIGNED NOT NULL,
`hire_expiry_time` BIGINT UNSIGNED NOT NULL,
UNIQUE KEY `uq_bot_player` (`bot_guid`, `player_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `bot_templates` (
`entry` INT UNSIGNED NOT NULL PRIMARY KEY,
`bot_class` TINYINT UNSIGNED NOT NULL,
`bot_race` TINYINT UNSIGNED NOT NULL,
`companion_spell` INT UNSIGNED NOT NULL DEFAULT 0,
`chatter_type` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`gender` TINYINT UNSIGNED NOT NULL DEFAULT 2,
`pet_source` INT UNSIGNED NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Bot template definitions (moved from hardcoded BotEntryClassTable)';
INSERT INTO `bot_templates` (`entry`, `bot_class`, `bot_race`, `companion_spell`, `chatter_type`, `gender`, `pet_source`) VALUES
-- Priests
(141508, 2, 1, 0, 1, 2, 0),
(375, 2, 1, 10675, 2, 1, 0),
(376, 2, 1, 0, 2, 1, 0),
(377, 2, 1, 70613, 2, 1, 0),
(837, 2, 2, 0, 3, 0, 0),
(3595, 2, 3, 0, 2, 1, 0),
(5484, 2, 1, 0, 1, 0, 0),
(5489, 2, 1, 0, 2, 0, 0),
(16502, 2, 5, 0, 1, 0, 0),
(49749, 2, 1, 0, 2, 1, 0),
-- Warriors
(911, 1, 1, 0, 2, 0, 0),
(912, 1, 2, 0, 1, 0, 0),
(913, 1, 1, 171118, 2, 1, 0),
(914, 1, 1, 0, 2, 0, 0),
(3593, 1, 3, 15067, 2, 1, 0),
(16503, 1, 5, 0, 1, 0, 0),
(46405, 1, 1, 0, 3, 0, 0),
(49736, 1, 1, 0, 3, 0, 0),
(50595, 1, 1, 0, 3, 2, 0),
(112912, 1, 1, 0, 1, 0, 0),
(164939, 1, 2, 0, 3, 1, 0),
(164940, 1, 7, 0, 1, 0, 0),
-- Mages
(198, 3, 1, 10697, 1, 0, 0),
(328, 3, 1, 10696, 1, 0, 0),
(16500, 3, 5, 0, 3, 1, 0),
(37121, 3, 2, 0, 1, 1, 0),
(43006, 3, 3, 0, 2, 1, 0),
(49760, 3, 1, 1263739, 2, 1, 0),
-- Paladins
(925, 6, 1, 0, 3, 0, 0),
(926, 6, 2, 0, 1, 0, 0),
(927, 6, 1, 0, 1, 0, 0),
(928, 6, 1, 0, 2, 0, 0),
(5491, 6, 1, 0, 3, 0, 0),
(5492, 6, 1, 0, 2, 1, 0),
(16501, 6, 5, 408311, 2, 0, 0),
(49741, 6, 1, 1269627, 2, 1, 0),
-- Warlocks
(459, 8, 1, 153252, 2, 1, 0),
(461, 8, 1, 0, 3, 1, 0),
(906, 8, 1, 0, 2, 0, 0),
(5495, 8, 1, 0, 3, 1, 0),
(6373, 8, 1, 0, 2, 0, 0),
(6374, 8, 1, 0, 1, 1, 0),
(49769, 8, 1, 0, 1, 1, 0),
-- Druids
(3597, 5, 3, 15067, 1, 0, 0),
(5506, 5, 3, 0, 1, 0, 0),
-- Rogues
(915, 4, 1, 0, 1, 0, 0),
(917, 4, 1, 0, 3, 1, 0),
(918, 4, 1, 0, 1, 0, 0),
(5505, 4, 3, 0, 3, 0, 0),
(13283, 4, 1, 0, 1, 0, 0),
(49745, 4, 1, 0, 2, 0, 0),
(173819, 4, 1, 0, 3, 1, 0),
-- Hunters
(895, 7, 2, 0, 3, 0, 1125),
(5516, 7, 2, 0, 1, 0, 191979),
(43011, 7, 1, 0, 3, 1, 44628),
(43278, 7, 1, 0, 3, 1, 43292),
(46983, 7, 1, 0, 2, 0, 46982),
-- Monks
(63258, 10, 7, 17707, 2, 0, 0),
(63331, 10, 7, 0, 1, 0, 0),
(63285, 10, 7, 345740, 2, 0, 0),
(63235, 10, 7, 0, 1, 0, 0),
-- Shamans
(17089, 9, 5, 0, 3, 0, 0),
(20407, 9, 5, 0, 2, 1, 0);
-- Bot Chatter Lines (emote_kiss replies moved from hardcoded C++ arrays to DB)
CREATE TABLE `bot_chatter_lines` (
`id` INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`category` TINYINT UNSIGNED NOT NULL,
`chatter_type` TINYINT UNSIGNED NOT NULL,
`text` TEXT NOT NULL,
INDEX `idx_category_type` (`category`, `chatter_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Bot chatter reply lines (loaded at startup, replaces hardcoded arrays)';
INSERT INTO `bot_chatter_lines` (`category`, `chatter_type`, `text`) VALUES
-- emote_kiss (category=30), None (type=0)
(30, 0, '{bot} blows a kiss to {target}.'),
(30, 0, '{bot} sends a warm kiss toward {target}.'),
(30, 0, '{bot} winks and blows a kiss at {target}.'),
-- emote_kiss (category=30), Neutral (type=1)
(30, 1, 'Oh. thank you, I guess?'),
(30, 1, 'What was that for?'),
(30, 1, 'You\'re full of surprises today.'),
(30, 1, 'Well. that was unexpected.'),
(30, 1, 'A kiss? Really now?'),
(30, 1, 'Uh. okay then.'),
(30, 1, 'Was that meant for me?'),
(30, 1, 'Not sure what that was about.'),
(30, 1, 'Huh. interesting choice.'),
(30, 1, 'Well, that happened.'),
(30, 1, 'Is this a new thing you\'re doing?'),
(30, 1, 'I\'ll pretend that made sense.'),
(30, 1, 'Unexpected, but alright.'),
(30, 1, 'You do you, I guess.'),
(30, 1, 'Not sure how to respond to that.'),
(30, 1, 'Was that intentional?'),
(30, 1, 'I\'m. just going to ignore that.'),
(30, 1, 'If that was a signal, I missed it.'),
(30, 1, 'I suppose that\'s one way to greet someone.'),
(30, 1, 'You\'re full of surprises, aren\'t you?'),
(30, 1, 'I\'ll take that as. something.'),
(30, 1, 'Is this normal for you?'),
(30, 1, 'I\'m not sure what you expect from me now.'),
(30, 1, 'Well, that\'s one way to pass the time.'),
(30, 1, 'I\'ll just act like that was totally normal.'),
-- emote_kiss (category=30), Positive (type=2)
(30, 2, 'Oh. thank you, That is so sweet...'),
(30, 2, 'For me? Ah thank you!'),
(30, 2, 'You\'re full of surprises today.'),
(30, 2, 'Well. that makes my day.'),
(30, 2, 'A kiss? Ah sure, why not...'),
(30, 2, 'Aww, that\'s adorable!'),
(30, 2, 'Well aren\'t you sweet!'),
(30, 2, 'Oh! That made me smile.'),
(30, 2, 'You\'re too kind, really.'),
(30, 2, 'That brightened my day, thank you.'),
(30, 2, 'You always know how to make things nicer.'),
(30, 2, 'Oh! I wasn\'t expecting that, but I liked it.'),
(30, 2, 'You\'re such a charmer, {bot}.'),
(30, 2, 'That was lovely. thank you.'),
(30, 2, 'You\'re making me blush over here.'),
(30, 2, 'How cute! Do it again.'),
(30, 2, 'You\'re surprisingly affectionate today.'),
(30, 2, 'That was sweet - keep it up.'),
(30, 2, 'You know how to make someone feel appreciated.'),
(30, 2, 'That was actually really nice.'),
(30, 2, 'You\'re full of warmth today.'),
(30, 2, 'A kiss? I won\'t say no to that.'),
(30, 2, 'You\'re making this adventure much more pleasant.'),
(30, 2, 'That was unexpectedly lovely.'),
(30, 2, 'You\'re such a softie sometimes.'),
-- emote_kiss (category=30), Negative (type=3)
(30, 3, 'Oh. no thanks...'),
(30, 3, 'Can you please, just... not do that?'),
(30, 3, 'You\'re at it again?'),
(30, 3, 'Not this shit again...'),
(30, 3, 'Just stop it!'),
(30, 3, 'Ugh. really?'),
(30, 3, 'Do you mind? Actually, yes, you do.'),
(30, 3, 'Why are you like this?'),
(30, 3, 'Stop that. Seriously.'),
(30, 3, 'If you do that again, I\'m walking.'),
(30, 3, 'I did NOT ask for that.'),
(30, 3, 'Gross. Just. gross.'),
(30, 3, 'Are you trying to annoy me?'),
(30, 3, 'That was unnecessary.'),
(30, 3, 'Please keep your lips to yourself.'),
(30, 3, 'Nope. Absolutely not.'),
(30, 3, 'You think that was cute? It wasn\'t.'),
(30, 3, 'I swear, you\'re doing this on purpose.'),
(30, 3, 'Can you not?'),
(30, 3, 'That better not become a habit.'),
(30, 3, 'I\'m not in the mood for your nonsense.'),
(30, 3, 'Try that again and see what happens.'),
(30, 3, 'You\'re testing my patience.'),
(30, 3, 'That was the opposite of charming.'),
(30, 3, 'I regret standing this close to you.'),
-- emote_kiss (category=30), Cynical (type=4)
(30, 4, 'A kiss? How quaint. And utterly meaningless.'),
(30, 4, 'I suppose you think that fixes everything.'),
(30, 4, 'Save it for someone who still believes in fairy tales.'),
-- emote_kiss (category=30), Bitter (type=5)
(30, 5, 'Don\'t patronize me with affection.'),
(30, 5, 'I don\'t want your pity kiss.'),
(30, 5, 'Keep your lips to yourself.'),
-- emote_kiss (category=30), Cold (type=6)
(30, 6, '...'),
(30, 6, 'Unnecessary.'),
(30, 6, 'That was inefficient.'),
-- emote_kiss (category=30), Guarded (type=7)
(30, 7, 'What are you trying to prove?'),
(30, 7, 'I don\'t trust gestures like that.'),
(30, 7, 'What\'s the angle here?'),
-- emote_kiss (category=30), Serious (type=8)
(30, 8, 'We have objectives to complete.'),
(30, 8, 'Focus on the mission.'),
(30, 8, 'Sentimentality is a liability.'),
-- emote_kiss (category=30), Dry (type=9)
(30, 9, 'Well, that happened.'),
(30, 9, 'Noted.'),
(30, 9, 'I\'ll add that to my list of unexpected events.'),
-- emote_kiss (category=30), Curious (type=10)
(30, 10, 'What prompted that? Was it instinct or intent?'),
(30, 10, 'Fascinating. What\'s the social protocol for returning that?'),
(30, 10, 'Do you kiss everyone, or am I special?'),
-- emote_kiss (category=30), Warm (type=11)
(30, 11, 'That was lovely, thank you.'),
(30, 11, 'You always know how to brighten my day.'),
(30, 11, 'A little kindness goes a long way.'),
-- emote_kiss (category=30), Enthusiastic (type=12)
(30, 12, 'Oh! Oh wow! That was AMAZING!'),
(30, 12, 'YES! Best. Kiss. EVER!'),
(30, 12, 'I am officially the happiest bot in Azeroth!'),
-- emote_kiss (category=30), Cheerful (type=13)
(30, 13, 'Aww, that\'s sweet! Made my whole day!'),
(30, 13, 'You\'re just the best, you know that?'),
(30, 13, 'Mwah! Right back at ya!'),
-- emote_kiss (category=30), Devoted (type=14)
(30, 14, 'Your affection means everything to me.'),
(30, 14, 'I live for moments like this with you.'),
(30, 14, 'My heart is yours, always.'),
-- emote_kiss (category=30), Morbid (type=15)
(30, 15, 'Your lips are warm... for now.'),
(30, 15, 'Kiss me while you still have lips.'),
(30, 15, 'One day I\'ll kiss your corpse goodbye.'),
-- emote_kiss (category=30), Narcissist (type=16)
(30, 16, 'Of course you\'d want to kiss perfection.'),
(30, 16, 'Mmm, you taste like admiration.'),
(30, 16, 'I\'m sure that made your entire life.'),
-- emote_kiss (category=30), Sadist (type=17)
(30, 17, 'I wonder if you\'d kiss me if I bit you.'),
(30, 17, 'Your lips tremble. I like that.'),
(30, 17, 'Too bad I don\'t feel anything.'),
-- emote_kiss (category=30), Hyperthymic (type=18)
(30, 18, 'WOOOO! KISS CAM! WE\'RE ON THE KISS CAM!'),
(30, 18, 'EVERYONE LOOK! WE JUST KISSED! THIS IS THE BEST!'),
(30, 18, 'I\'M NEVER WASHING THESE LIPS AGAIN!'),
-- emote_kiss (category=30), Autotelic (type=19)
(30, 19, 'That was a genuine moment. I appreciate it.'),
(30, 19, 'I kiss because it feels right, not because I must.'),
(30, 19, 'Connection for its own sake is beautiful.'),
-- emote_kiss (category=30), Autistic (type=20)
(30, 20, 'Your lips registered at 36.8 degrees Celsius. Nice.'),
(30, 20, 'The pressure was exactly 4.2 newtons. Perfect.'),
(30, 20, 'I felt that in my entire nervous system. Wow.');