still db not start need fix housing columns

This commit is contained in:
luis
2026-04-28 08:02:45 -03:00
parent 89835cb128
commit 43a3c2bfa9
@@ -20,4 +20,34 @@ CREATE TABLE `character_housing_rooms` (
PRIMARY KEY (`id`),
KEY `idx_ownerGuid` (`ownerGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Character housing rooms data';
DROP TABLE IF EXISTS `character_housing_decor`;
-- Character Housing Decor Table
-- This table stores housing decoration items for characters
CREATE TABLE `character_housing_decor` (
`ownerGuid` bigint(20) unsigned NOT NULL COMMENT 'Character GUID who owns this housing decoration',
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique identifier for this decoration entry',
`houseDecorId` int(10) unsigned NOT NULL COMMENT 'Identifier for the house decoration template',
`posX` float NOT NULL DEFAULT '0' COMMENT 'X position coordinate',
`posY` float NOT NULL DEFAULT '0' COMMENT 'Y position coordinate',
`posZ` float NOT NULL DEFAULT '0' COMMENT 'Z position coordinate',
`rotX` float NOT NULL DEFAULT '0' COMMENT 'X rotation component',
`rotY` float NOT NULL DEFAULT '0' COMMENT 'Y rotation component',
`rotZ` float NOT NULL DEFAULT '0' COMMENT 'Z rotation component',
`rotW` float NOT NULL DEFAULT '0' COMMENT 'W rotation component (quaternion)',
`dyeSlot0` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Dye color for slot 0',
`dyeSlot1` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Dye color for slot 1',
`dyeSlot2` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Dye color for slot 2',
`roomGuid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'GUID of the room this decoration is placed in',
`locked` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Whether the decoration is locked (0=false, 1=true)',
`placementTime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Unix timestamp when the decoration was placed',
`sourceType` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Source type of the decoration',
`sourceValue` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Source value identifier',
PRIMARY KEY (`id`),
KEY `idx_ownerGuid` (`ownerGuid`),
KEY `idx_roomGuid` (`roomGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Character housing decorations data';