items.sql 924 B

12345678910111213141516171819202122
  1. -- ----------------------------
  2. -- Table structure for items
  3. -- ----------------------------
  4. CREATE TABLE IF NOT EXISTS `items` (
  5. `owner_id` INT, -- object id of the player or clan,owner of this item
  6. `object_id` INT NOT NULL DEFAULT 0,-- object id of the item
  7. `item_id` INT, -- item id
  8. `count` BIGINT UNSIGNED NOT NULL default 0,
  9. `enchant_level` INT,
  10. `loc` VARCHAR(10), -- inventory,paperdoll,npc,clan warehouse,pet,and so on
  11. `loc_data` INT, -- depending on location: equiped slot,npc id,pet id,etc
  12. `time_of_use` INT, -- time of item use, for calculate of breackages
  13. `custom_type1` INT DEFAULT 0,
  14. `custom_type2` INT DEFAULT 0,
  15. `mana_left` decimal(3,0) NOT NULL default -1,
  16. `time` decimal NOT NULL default 0,
  17. PRIMARY KEY (`object_id`),
  18. KEY `key_owner_id` (`owner_id`),
  19. KEY `key_loc` (`loc`),
  20. KEY `key_item_id` (`item_id`),
  21. KEY `key_time_of_use` (`time_of_use`)
  22. );