-- Member Click Through Stats Data - Totals of URL click-throughs - Preserved for 2 years
CREATE TABLE {prefix}clickthrough_stats (
- member INT NULL, -- ID of member
+ member INT NOT NULL, -- ID of member
stat_type INT NULL, -- Type of stat 1 = day, 2 = week, 3 = month
stat_date DATE NULL, -- Date for which these stats are accumulated (date or first date of week or month)
clicks INT NULL, -- Number of Clicks
-- Member Detail Display Stats Data - Totals of times detail page is displayed - Preserved for 2 years
CREATE TABLE {prefix}member_detail_stats (
- member INT NULL, -- ID of member
+ member INT NOT NULL, -- ID of member
stat_type INT NULL, -- Type of stat 1 = day, 2 = week, 3 = month
stat_date DATE NULL, -- Date for which these stats are accumulated (date or first date of week or month)
clicks INT NULL, -- Number of Clicks
html MEDIUMTEXT NULL,
PRIMARY KEY (cache_code(20)),
INDEX (created)
-);
+);
----