| Server IP : 127.0.0.1 / Your IP : 216.73.216.48 Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64 User : win 10 ( 0) PHP Version : 8.2.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/base/ |
Upload File : |
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 03, 2026 at 04:22 PM
-- Server version: 10.4.25-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: `snclipdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE `admins` (
`id` int(11) NOT NULL,
`my_id` varchar(255) NOT NULL,
`username` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`role` enum('superadmin','editor','viewer') DEFAULT 'editor',
`last_login` datetime DEFAULT NULL,
`status` enum('active','suspended') DEFAULT 'active',
`created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admins`
--
INSERT INTO `admins` (`id`, `my_id`, `username`, `email`, `role`, `last_login`, `status`, `created_at`) VALUES
(12, 'CB2', 'Pad', '', 'superadmin', NULL, 'active', '2026-01-02 15:57:44');
-- --------------------------------------------------------
--
-- Table structure for table `cine_subscriptiontb`
--
CREATE TABLE `cine_subscriptiontb` (
`id` int(11) NOT NULL,
`my_id` varchar(255) NOT NULL,
`username` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`subscription_status` enum('active','expired') DEFAULT 'expired',
`expiry_date` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `cine_subscriptiontb`
--
INSERT INTO `cine_subscriptiontb` (`id`, `my_id`, `username`, `email`, `subscription_status`, `expiry_date`) VALUES
(45, 'CB2', '', '', 'active', '2026-01-03 15:57:59'),
(46, 'CB6', '', '', 'active', '2026-01-09 20:36:04');
-- --------------------------------------------------------
--
-- Table structure for table `payments`
--
CREATE TABLE `payments` (
`id` int(11) NOT NULL,
`my_id` varchar(255) NOT NULL,
`transaction_ref` varchar(100) NOT NULL,
`amount` decimal(15,2) NOT NULL,
`plan` varchar(50) NOT NULL,
`status` enum('pending','approved','rejected') DEFAULT 'pending',
`expiry_date` timestamp NULL DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `payments`
--
INSERT INTO `payments` (`id`, `my_id`, `transaction_ref`, `amount`, `plan`, `status`, `expiry_date`, `created_at`, `updated_at`) VALUES
(31, 'CB2', '32233223223', 1000.00, 'daily', 'approved', '2026-01-03 15:57:59', '2026-01-02 15:55:47', '2026-01-02 15:57:59'),
(32, 'CB6', '698774455555', 5000.00, 'weekly', 'approved', '2026-01-09 20:36:04', '2026-01-02 20:35:49', '2026-01-02 20:36:04');
-- --------------------------------------------------------
--
-- Table structure for table `pending_transactions`
--
CREATE TABLE `pending_transactions` (
`id` int(11) NOT NULL,
`transaction_ref` varchar(50) NOT NULL,
`mobile_number` varchar(15) DEFAULT '0754557788',
`status` enum('pending','approved','rejected') DEFAULT 'pending',
`submitted_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
`author_id` int(11) DEFAULT NULL,
`status` enum('draft','published') DEFAULT 'draft',
`created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `sn_moviestb`
--
CREATE TABLE `sn_moviestb` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`movieCategory` text DEFAULT NULL,
`thumbnail` varchar(255) DEFAULT NULL,
`video_path` varchar(255) DEFAULT NULL,
`is_trending` int(11) DEFAULT 0,
`view_count` int(11) DEFAULT 0,
`trailer_path` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `sn_moviestb`
--
INSERT INTO `sn_moviestb` (`id`, `title`, `movieCategory`, `thumbnail`, `video_path`, `is_trending`, `view_count`, `trailer_path`) VALUES
(1, 'The Return of Me', 'Action movie', 'img1.jpg', 'movie1.mp4', 0, 0, NULL),
(2, 'Game over', 'Action', 'img2.jpg', 'Mr.Tee🇰🇪,_Joshua_Baraka🇺🇬_and_TENORBOY🇳🇬_-_DIGII_IV__Official_Video_(1080p).mp4', 0, 0, NULL),
(3, 'Speed of the evil', 'Evil', 'img3.jpg', 'movie1.mp4', 0, 0, NULL),
(4, 'The bend', 'Movie one', 'img1.jpg', 'movie1.mp4', 0, 0, NULL),
(5, 'Enter the death game', 'Best action', 'img2.jpg', 'movie1.mp4', 0, 0, NULL),
(6, 'Impossible', 'Best of the best', 'img3.jpg', 'movie1.mp4', 0, 0, NULL),
(7, 'Can slow', 'owede', 'img4.png', 'movie1.mp4', 0, 0, NULL),
(8, 'Game over 2', 'Be carefully', 'img1.jpg', 'movie1.mp4', 0, 0, NULL),
(9, 'Done', 'Move on', 'img2.jpg', 'movie1.mp4', 0, 0, NULL),
(10, 'Can 1', 'you', 'img1.jpg', 'movie1.mp4', 0, 0, NULL),
(11, 'Be stay', 'where', 'img3.jpg', 'movie1.mp4', 0, 0, NULL),
(12, 'Move faster', 'Easy boy', 'img4.png', 'movie1.mp4', 0, 0, NULL),
(13, 'The Cent', 'cent', 'img1.jpg', 'movie1.mp4', 0, 0, NULL),
(14, 'Fast foods', 'foods', 'img2.jpg', 'movie1.mp4', 0, 0, NULL),
(15, 'Host', 'He did', 'img3.jpg', 'movie1.mp4', 0, 0, NULL),
(16, 'The Bush Man', NULL, '1766568290_thumb.jpg', '1766568290_VID_20180803_WA0001.mp4', 0, 0, NULL),
(17, 'The Bush Man', NULL, '1766569175_thumb.jpg', '1766569175_VID_20180803_WA0001.mp4', 0, 0, NULL),
(18, 'The House', NULL, '1766569827_thumb.jpg', '1766569827_VID_20200610_WA0559.mp4', 0, 0, NULL),
(19, 'The House 2', NULL, '1766570422_thumb.jpg', '1766570422_VID_20200610_WA0559.mp4', 0, 0, NULL),
(20, 'Micky', NULL, '1766570519_thumb.jpg', '1766570519_VID_20230829_WA0209.mp4', 0, 0, NULL),
(21, 'Ezara', NULL, '1766571702_thumb.jpg', '1766571702_VID_20200113_WA0002.mp4', 0, 0, NULL),
(22, 'Sarah', NULL, '1766571872_thumb.jpg', '1766571872_VID_20230211_WA0041.mp4', 0, 0, NULL),
(23, 'Sala', NULL, '1766572788_thumb.jpg', '1766572788_VID_20220805_WA0141.mp4', 1, 0, NULL),
(24, 'The House 3', NULL, '1766573205_thumb.jpg', '1766573205_VID_20231201_WA0131.mp4', 1, 0, NULL),
(25, 'Larrey', NULL, '1766608274_thumb.jpg', '1766608274_VID_20241115_WA0060.mp4', 0, 0, NULL),
(26, 'Game on', NULL, '1766645563_thumb.jpg', '1766645563_VID_20241115_WA0060.mp4', 0, 0, NULL),
(27, 'Game on 2', NULL, '1766645638_thumb.jpg', '1766645638_VID_20241115_WA0060.mp4', 1, 0, NULL),
(29, 'Muliro', NULL, '1767043441_thumb.jpg', '1767043441_NKOOYE_OKWEWOZAKO_by_NATUKUNDA_LYN.mp4', 0, 0, NULL),
(30, 'wolfman', 'Adventure', '1767083775_thumb.jpg', '1767083775_THE_WOLFMAN_JR.mp4', 0, 0, NULL),
(31, 'Nkooye nyo', 'Action', '1767392615_thumb.jpg', '1767392615_NKOOYE_OKWEWOZAKO_by_NATUKUNDA_LYN.mp4', 0, 0, NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admins`
--
ALTER TABLE `admins`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `cine_subscriptiontb`
--
ALTER TABLE `cine_subscriptiontb`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `payments`
--
ALTER TABLE `payments`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `unique_ref` (`transaction_ref`);
--
-- Indexes for table `pending_transactions`
--
ALTER TABLE `pending_transactions`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `transaction_ref` (`transaction_ref`);
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`),
ADD KEY `author_id` (`author_id`);
--
-- Indexes for table `sn_moviestb`
--
ALTER TABLE `sn_moviestb`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admins`
--
ALTER TABLE `admins`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `cine_subscriptiontb`
--
ALTER TABLE `cine_subscriptiontb`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
--
-- AUTO_INCREMENT for table `payments`
--
ALTER TABLE `payments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT for table `pending_transactions`
--
ALTER TABLE `pending_transactions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `sn_moviestb`
--
ALTER TABLE `sn_moviestb`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `posts`
--
ALTER TABLE `posts`
ADD CONSTRAINT `posts_ibfk_1` FOREIGN KEY (`author_id`) REFERENCES `admins` (`id`) ON DELETE SET NULL;
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 */;