SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;


DROP TABLE IF EXISTS `link_report`;
CREATE TABLE `link_report` (
  `id` bigint(20) NOT NULL,
  `date` date NOT NULL,
  `name` varchar(32) NOT NULL,
  `sub1` varchar(32) NOT NULL,
  `hits` varchar(12) NOT NULL,
  `uniques` double NOT NULL,
  `clicks` double NOT NULL,
  `conversions` double NOT NULL,
  `cr` varchar(12) NOT NULL,
  `earnings` double NOT NULL,
  `hash` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


ALTER TABLE `link_report`
  ADD PRIMARY KEY (`id`);


ALTER TABLE `link_report`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
