-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 02, 2025 at 04:27 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `apps`
--

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

--
-- Table structure for table `admin_crud`
--

CREATE TABLE `admin_crud` (
  `sr_no` int(11) NOT NULL,
  `admin_name` varchar(150) NOT NULL,
  `admin_pass` int(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admin_crud`
--

INSERT INTO `admin_crud` (`sr_no`, `admin_name`, `admin_pass`) VALUES
(1, 'app', 1234);

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

--
-- Table structure for table `advertiser`
--

CREATE TABLE `advertiser` (
  `id` int(100) NOT NULL,
  `name` varchar(200) NOT NULL,
  `image` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `advertiser`
--

INSERT INTO `advertiser` (`id`, `name`, `image`) VALUES
(10, 'sabin', 'upload/sanp.png'),
(14, 'wqe', 'Advertiser_img/Screenshot (4).png'),
(16, 'Mausam', 'Advertiser_img/appicon.png');

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

--
-- Table structure for table `analytics`
--

CREATE TABLE `analytics` (
  `id` int(11) NOT NULL,
  `short_code` varchar(10) DEFAULT NULL,
  `ip_address` varchar(50) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `analytics`
--

INSERT INTO `analytics` (`id`, `short_code`, `ip_address`, `user_agent`, `created_at`) VALUES
(11, '9ba3d8', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', '2025-03-04 12:22:33'),
(12, '9ba3d8', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', '2025-03-04 12:22:37'),
(13, '9ba3d8', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', '2025-03-04 12:32:41'),
(14, 'cf69a6', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', '2025-03-04 16:22:03');

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

--
-- Table structure for table `appstores`
--

CREATE TABLE `appstores` (
  `id` int(100) NOT NULL,
  `name` varchar(400) NOT NULL DEFAULT 'UNIQUE(name)',
  `advertiser_name` varchar(200) NOT NULL,
  `description` varchar(300) NOT NULL,
  `image1` varchar(500) NOT NULL,
  `image1_link` varchar(200) NOT NULL,
  `image2` varchar(400) NOT NULL,
  `image2_link` varchar(300) NOT NULL,
  `image1_long_url` varchar(255) NOT NULL,
  `image2_long_url` varchar(255) NOT NULL,
  `image1_clicks` int(200) NOT NULL,
  `image2_clicks` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `appstores`
--

INSERT INTO `appstores` (`id`, `name`, `advertiser_name`, `description`, `image1`, `image1_link`, `image2`, `image2_link`, `image1_long_url`, `image2_long_url`, `image1_clicks`, `image2_clicks`) VALUES
(108, 'Suresh CHy', 'sabin', 'asd', '133844017527562414.jpg', '17ec5e', '1741332271_Screenshot (4).png', 'fbe24c', 'https://www.facebook.com/', 'https://www.facebook.com/', 0, 0),
(123, 'sabin', 'sabin', 'asd', '1742546245_ftimage copy.png', '860937', 'File upload error: Array', '46eed8', 'https://www.facebook.com/', 'http://localhost/Groovin/Groovin/NiceAdmin/app.php', 0, 0),
(124, 'sabin', 'sabin', 'asadsfd', '1742546339_ftimage copy.png', '3fcd51', 'File upload error: Array', '8cd392', 'http://localhost/Groovin/Groovin/NiceAdmin/app.php', 'https://www.facebook.com/', 0, 0),
(125, 'Suresg', 'sabin', 'sxdc', '1742546679_ftimage copy.png', 'd93c03', 'ftimage copy.png', 'ffdef1', 'https://www.facebook.com/', 'http://localhost/Groovin/Groovin/NiceAdmin/app.php', 0, 0),
(128, 'sa', 'wqe', 'as', '1746467244_appicon.png', 'bdeec3', '1746467244_appicon.png', 'dbc590', 'https://www.facebook.com/', 'http://localhost/Groovin/Groovin/NiceAdmin/app.php', 0, 0);

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

--
-- Table structure for table `package`
--

CREATE TABLE `package` (
  `id` int(200) NOT NULL,
  `name` varchar(300) NOT NULL,
  `image` varchar(300) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `package`
--

INSERT INTO `package` (`id`, `name`, `image`) VALUES
(5, 'Suresh chy', ''),
(6, 'sabin', ''),
(7, 'Ram', ''),
(8, 'Hari', ''),
(9, 'Mausam', ''),
(10, 'Kushma', ''),
(11, 'Bhabana', '');

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

--
-- Table structure for table `short_links`
--

CREATE TABLE `short_links` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `long_url` text NOT NULL,
  `short_code` varchar(10) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `short_links`
--

INSERT INTO `short_links` (`id`, `name`, `long_url`, `short_code`, `created_at`) VALUES
(17, 'Mausam Chaudhary', 'https://www.mediafire.com/file/qal3cmipheyn40w/Music.zip/file', '9ba3d8', '2025-03-04 12:21:39'),
(18, 'Suresh', 'https://www.mediafire.com/file/qal3cmipheyn40w/Music.zip/file', 'cf69a6', '2025-03-04 12:24:15'),
(19, 'Omjit', 'https://www.facebook.com/', 'a47466', '2025-03-05 05:05:06');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin_crud`
--
ALTER TABLE `admin_crud`
  ADD PRIMARY KEY (`sr_no`);

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

--
-- Indexes for table `analytics`
--
ALTER TABLE `analytics`
  ADD PRIMARY KEY (`id`),
  ADD KEY `short_code` (`short_code`);

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

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

--
-- Indexes for table `short_links`
--
ALTER TABLE `short_links`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `short_code` (`short_code`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin_crud`
--
ALTER TABLE `admin_crud`
  MODIFY `sr_no` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `advertiser`
--
ALTER TABLE `advertiser`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `analytics`
--
ALTER TABLE `analytics`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `appstores`
--
ALTER TABLE `appstores`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=130;

--
-- AUTO_INCREMENT for table `package`
--
ALTER TABLE `package`
  MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `short_links`
--
ALTER TABLE `short_links`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
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 */;
