mysimulation/server/FSO.Server.Database/DatabaseScripts/changes/0031_global_cooldowns.sql
Tony Bark 22191ce648 Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib
- Added FreeSO's API server to handle most backend operations
2024-05-01 02:55:43 -04:00

10 lines
No EOL
656 B
SQL
Executable file

CREATE TABLE IF NOT EXISTS `fso_global_cooldowns` (
`object_guid` int(11) unsigned NOT NULL,
`avatar_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`category` int(10) unsigned NOT NULL,
`expiry` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`object_guid`, `avatar_id`, `user_id`, `category`),
CONSTRAINT `FK_global_cooldowns_fso_avatars` FOREIGN KEY (`avatar_id`) REFERENCES `fso_avatars` (`avatar_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `FK_global_cooldowns_fso_users` FOREIGN KEY (`user_id`) REFERENCES `fso_users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
)