1
0
EQ2Emu/docs/database/world/character_spells.md
2025-05-04 14:34:15 -04:00

737 B

Table: character_spells

Description:

Defines character_spells table in the World database.

Columns:

  • id (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
  • char_id (int(10), NOT NULL, DEFAULT 0)
  • spell_id (int(10), NOT NULL, DEFAULT 0)
  • tier (tinyint(3), NOT NULL, DEFAULT 1)
  • knowledge_slot (mediumint(9), NOT NULL, DEFAULT -1)

Primary Keys:

  • id

Indexes/Notes:

  • UNIQUE KEY NewIndex (char_id,spell_id,tier)
  • KEY FK_char_spells (spell_id)
  • CONSTRAINT FK_char_spells FOREIGN KEY (spell_id) REFERENCES spells (id) ON DELETE CASCADE ON UPDATE CASCADE
  • CONSTRAINT FK_character_spells FOREIGN KEY (char_id) REFERENCES characters (id) ON DELETE CASCADE ON UPDATE CASCADE