-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 17, 2023 at 02:35 PM
-- Server version: 10.1.26-MariaDB
-- PHP Version: 7.1.8

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 */;

--
-- Database: `reportmulti`
--

-- --------------------------------------------------------

--
-- Table structure for table `conversions`
--

CREATE TABLE `conversions` (
  `id` int(11) NOT NULL,
  `date` datetime NOT NULL,
  `subid` varchar(20) NOT NULL,
  `offer_name` varchar(12) NOT NULL,
  `country` varchar(32) NOT NULL,
  `payout` double NOT NULL,
  `os` varchar(16) NOT NULL,
  `network` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `hitstat`
--

CREATE TABLE `hitstat` (
  `id` bigint(20) NOT NULL,
  `date` datetime NOT NULL,
  `ip` varchar(128) NOT NULL,
  `country` varchar(64) NOT NULL,
  `device` varchar(12) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `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,
  `network` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `id` bigint(32) NOT NULL,
  `userid` varchar(32) NOT NULL,
  `pass` varchar(255) NOT NULL,
  `confirm` varchar(255) DEFAULT NULL,
  `group` enum('0','1','2','3','4','5','6') NOT NULL,
  `email` varchar(255) NOT NULL,
  `join_date` datetime NOT NULL,
  `status` enum('0','1') NOT NULL,
  `activation` text,
  `ipaddress` text,
  `forward_url` varchar(255) DEFAULT NULL,
  `referrer` varchar(32) NOT NULL,
  `hitstat` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`id`, `userid`, `pass`, `confirm`, `group`, `email`, `join_date`, `status`, `activation`, `ipaddress`, `forward_url`, `referrer`, `hitstat`) VALUES
(1, 'admin', '8f47bb12d5fa496b92c08cbbee47b22d', NULL, '0', 'metalgenix@gmail.com', '2020-02-03 06:08:25', '1', NULL, NULL, '', '', '');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `conversions`
--
ALTER TABLE `conversions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `hitstat`
--
ALTER TABLE `hitstat`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `link_report`
--
ALTER TABLE `link_report`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `conversions`
--
ALTER TABLE `conversions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hitstat`
--
ALTER TABLE `hitstat`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `link_report`
--
ALTER TABLE `link_report`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
  MODIFY `id` bigint(32) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;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 */;
