-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 20, 2025 at 01:06 PM
-- Server version: 10.11.11-MariaDB-log
-- PHP Version: 8.3.19

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: `rtlprevi_reminder`
--

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

--
-- Table structure for table `emails`
--

CREATE TABLE `emails` (
  `id` int(11) NOT NULL,
  `email` varchar(50) NOT NULL,
  `frequency` int(11) NOT NULL,
  `template` text NOT NULL,
  `next_send_time` datetime NOT NULL,
  `status` enum('pending','completed') NOT NULL DEFAULT 'pending'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_persian_ci;

--
-- Dumping data for table `emails`
--

INSERT INTO `emails` (`id`, `email`, `frequency`, `template`, `next_send_time`, `status`) VALUES
(1, 'email@email.com', 4, 'Hello, I am writing to you because I need to report a client of yours.\n\nThe website is \n\nI need information on how to proceed against the hosting and domain service so that I can ask you to suspend that information.\n\nThank you so much', '2023-11-11 10:20:00', 'pending'),
(2, 'email@email.com', 2, 'Hello, I am writing to you because I need to report a client of yours.\r\n\r\nThe website is \r\n\r\nI need information on how to proceed against the hosting and domain service so that I can ask you to suspend that information.\r\n\r\nThank you so much', '2023-11-11 10:20:00', 'completed'),
(3, 'rastchin79@gmail.com', 5, 'تست', '2025-04-22 15:14:00', 'pending'),
(4, 'rastchin79@gmail.com', 5, 'تست', '2025-04-22 15:14:00', 'pending'),
(5, 'rastchin79@gmail.com', 1, 'تست', '2025-04-12 15:15:00', 'pending'),
(6, 'rastchin79@gmail.com', 5, 'تست', '2025-04-23 15:15:00', 'pending');

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

--
-- Table structure for table `phone`
--

CREATE TABLE `phone` (
  `id` int(11) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `massage` varchar(255) NOT NULL,
  `send_time` datetime NOT NULL,
  `patterncode` varchar(50) DEFAULT NULL,
  `status` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_persian_ci;

--
-- Dumping data for table `phone`
--

INSERT INTO `phone` (`id`, `phone`, `massage`, `send_time`, `patterncode`, `status`) VALUES
(36, '09140790345', '', '2025-04-17 13:08:34', 'oyskgvtnua2ve0q', 'completed'),
(35, '09140790345', '', '2025-04-17 13:06:49', 'oyskgvtnua2ve0q', 'completed'),
(34, '09140790345', '', '2025-04-17 09:04:00', 'oyskgvtnua2ve0q', 'completed'),
(33, '09140790345', '', '2025-04-16 13:08:00', 'oyskgvtnua2ve0q', 'completed'),
(32, '09140790345', '', '2025-04-16 12:59:00', 'oyskgvtnua2ve0q', 'completed'),
(31, '09140790345', '', '2025-04-16 16:57:00', 'oyskgvtnua2ve0q', 'completed'),
(30, '09140790345', '', '2025-04-16 12:34:00', 'oyskgvtnua2ve0q', 'pending'),
(28, '09140790345', '', '2025-04-15 16:22:00', 'oyskgvtnua2ve0q', 'completed'),
(29, '09140790345', '', '2025-04-15 18:06:00', 'oyskgvtnua2ve0q', 'pending'),
(27, '09140790345', '', '2025-04-15 16:03:00', 'oyskgvtnua2ve0q', 'pending'),
(26, '09140790345', '', '2025-04-02 16:19:00', 'oyskgvtnua2ve0q', 'completed'),
(25, '09140790345', '', '2025-03-25 15:34:00', 'oyskgvtnua2ve0q', 'pending'),
(23, '09140790345', '', '2025-04-15 15:15:00', 'oyskgvtnua2ve0q', 'completed'),
(24, '09140790345', '', '2025-04-15 15:12:00', 'oyskgvtnua2ve0q', 'pending'),
(37, '09140790345', '', '2025-04-17 13:13:00', 'oyskgvtnua2ve0q', 'completed'),
(38, '09140790345', '', '2025-04-18 13:11:04', 'oyskgvtnua2ve0q', 'completed'),
(39, '09140790345', '', '2025-04-20 13:23:00', 'oyskgvtnua2ve0q', 'pending'),
(40, '09140790345', '', '2025-04-20 13:23:00', 'oyskgvtnua2ve0q', 'pending'),
(41, '09140790345', '', '2025-04-16 13:21:08', 'oyskgvtnua2ve0q', 'pending'),
(42, '09140790345', '', '2025-04-16 13:21:08', 'oyskgvtnua2ve0q', 'pending'),
(43, '09140790345', '', '2025-04-01 13:21:43', '', 'pending'),
(44, '09140790345', '', '2025-04-19 13:24:00', '', 'completed'),
(45, '09140790345', '', '2025-04-06 13:22:32', '', 'pending'),
(46, '09140790345', '', '2025-04-20 13:22:59', '', 'pending'),
(47, '09140790345', '', '2025-03-31 13:23:07', 'oyskgvtnua2ve0q', 'pending'),
(48, '09140790345', 'ØªØ³Øª', '2025-04-18 13:23:15', 'oyskgvtnua2ve0q', 'completed'),
(49, '09140790345', '', '2025-03-22 12:25:37', '', 'pending'),
(53, '09140790345', '', '2025-04-17 22:52:00', 'oyskgvtnua2ve0q', 'completed'),
(52, '09140790345', '', '2025-04-17 22:50:00', 'oyskgvtnua2ve0q', 'completed'),
(54, '09140790345', '', '2025-04-17 22:56:00', 'oyskgvtnua2ve0q', 'completed');

--
-- Indexes for dumped tables
--

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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