9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2026-01-06 15:41:56 +00:00

Events & API work, save DataSaveCauses as part of versioning

This commit is contained in:
William
2022-07-07 01:52:19 +01:00
parent fd08a3e7d0
commit 1c9d74f925
48 changed files with 1477 additions and 340 deletions

View File

@@ -10,10 +10,11 @@ CREATE TABLE IF NOT EXISTS `%players_table%`
# Create the player data table if it does not exist
CREATE TABLE IF NOT EXISTS `%data_table%`
(
`version_uuid` char(36) NOT NULL,
`player_uuid` char(36) NOT NULL,
`timestamp` datetime NOT NULL,
`data` mediumblob NOT NULL,
`version_uuid` char(36) NOT NULL,
`player_uuid` char(36) NOT NULL,
`timestamp` datetime NOT NULL,
`save_cause` varchar(32) NOT NULL,
`data` mediumblob NOT NULL,
PRIMARY KEY (`version_uuid`),
FOREIGN KEY (`player_uuid`) REFERENCES `%players_table%` (`uuid`) ON DELETE CASCADE