This section defines the required tables needed in the custom dictionary, along with all field definitions.
SQLite schema structure for a custom dictionary:
CREATE TABLE DictionaryInformation (
DictionaryID TEXT PRIMARY KEY,
Name TEXT NOT NULL,
Information TEXT NOT NULL
);
CREATE TABLE DictionaryItems (
ItemID INTEGER PRIMARY KEY AUTOINCREMENT,
DictionaryID TEXT NOT NULL,
DisplayTerm TEXT NOT NULL,
DisplayDefinition TEXT NOT NULL,
SearchTerm TEXT NOT NULL,
SortTerm TEXT NOT NULL
);
CREATE TABLE DictionaryResources (
ItemID INTEGER PRIMARY KEY AUTOINCREMENT,
DictionaryID TEXT NOT NULL,
Name TEXT NOT NULL,
URL TEXT NOT NULL
);
CREATE TABLE CharacterMapping (
ItemID INTEGER PRIMARY KEY AUTOINCREMENT,
DictionaryID TEXT NOT NULL,
OriginalCharacter TEXT NOT NULL,
MappedCharacter TEXT NOT NULL
);