Within your Mysql run this code.
CREATE TABLE wp_yuzoclicks
(
ID
int(11) NOT NULL COMMENT ‘ID autoincrement’,
post_id
int(15) NOT NULL COMMENT ‘ID post’,
date_click
datetime NOT NULL COMMENT ‘Date and time when the click was made’,
timestamp_click
int(15) NOT NULL COMMENT ‘Timestamp when the click was made’,
ip
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘Ip of the click’,
la
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘Latitude of the click’,
lo
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘Longitude of the click’,
country
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘Country name of the click’,
country_code
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘Country code of the click’,
region
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘Region code of the click’,
city
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘City code of the click’,
device
varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ‘Device that was clicked (d=desktop,m=mobile,t=tablet)’,
url
varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
where_is
varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
browser_details
varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
type_click
char(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ‘c’ COMMENT ‘c=conten,s=shortcode,w=widget’,
post_from
char(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ‘Save the ID of the post from where the click was made’,
yuzo_list_id
int(11) NOT NULL COMMENT ‘Save the ID yuzo’,
price_per_click
decimal(10,2) DEFAULT ‘0.00’ COMMENT ‘Calculate the price per click based on the item level’,
level_click
int(2) DEFAULT ‘1’ COMMENT ‘Level of the article that was clicked, this helps calculate how much each click costs’
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE wp_yuzoclicks
ADD UNIQUE KEY ID
(ID
);
ALTER TABLE wp_yuzoclicks
MODIFY ID
int(11) NOT NULL AUTO_INCREMENT COMMENT ‘ID autoincrement’;
Note: This script is for the wp_ prefix if you use this prefix run it, but you will have to change the prefix of how you use your table.
-
This reply was modified 4 years, 10 months ago by ilenstudio.