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

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

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `id` int(11) NOT NULL,
  `main_admin` varchar(100) NOT NULL DEFAULT '0',
  `user` varchar(100) NOT NULL DEFAULT '0',
  `first_name` varchar(100) NOT NULL,
  `status` int(10) NOT NULL DEFAULT '0',
  `channel` varchar(100) NOT NULL DEFAULT '0',
  `status_ch` int(11) NOT NULL DEFAULT '0',
  `text` int(11) NOT NULL DEFAULT '0',
  `photo` int(11) NOT NULL DEFAULT '0',
  `video` int(11) NOT NULL DEFAULT '0',
  `file` int(11) NOT NULL DEFAULT '0',
  `voice` int(11) NOT NULL DEFAULT '0',
  `location` int(11) NOT NULL DEFAULT '0',
  `audio` int(11) NOT NULL DEFAULT '0',
  `sticker` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `channel`
--

CREATE TABLE `channel` (
  `id` int(11) NOT NULL,
  `channel` varchar(1000) CHARACTER SET utf8 NOT NULL,
  `signature` varchar(200) NOT NULL DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '1',
  `last_date` varchar(1000) CHARACTER SET utf8 NOT NULL DEFAULT '0',
  `today` int(11) NOT NULL DEFAULT '0',
  `yesterday` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `list`
--

CREATE TABLE `list` (
  `id` int(11) NOT NULL,
  `ch_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
  `admin_id` int(11) NOT NULL DEFAULT '0',
  `forward` tinyint(1) NOT NULL DEFAULT '0',
  `msg_id` int(11) NOT NULL DEFAULT '0',
  `date_created` varchar(100) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
  `date_send` varchar(255) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL DEFAULT '0',
  `time_send` varchar(1000) NOT NULL DEFAULT '0',
  `time_expired` varchar(500) NOT NULL DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '0',
  `caption` varchar(5000) DEFAULT NULL,
  `file_id` varchar(1000) CHARACTER SET utf32 NOT NULL DEFAULT '0',
  `video_id` varchar(1000) CHARACTER SET utf32 NOT NULL DEFAULT '0',
  `photo_id` varchar(1000) CHARACTER SET utf32 NOT NULL DEFAULT '0',
  `audio_id` varchar(1000) CHARACTER SET utf8 NOT NULL DEFAULT '0',
  `sticker_id` varchar(1000) CHARACTER SET utf32 NOT NULL DEFAULT '0',
  `voice_id` varchar(1000) CHARACTER SET utf32 NOT NULL DEFAULT '0',
  `location_long` varchar(1000) CHARACTER SET utf32 NOT NULL DEFAULT '0',
  `location_lat` varchar(1000) CHARACTER SET utf32 NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `member`
--

CREATE TABLE `member` (
  `id` int(11) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `username` varchar(1000) DEFAULT NULL,
  `first_name` varchar(1000) DEFAULT NULL,
  `last_name` varchar(1000) DEFAULT NULL,
  `date_created` varchar(50) DEFAULT NULL,
  `last_query` varchar(1000) DEFAULT NULL,
  `last_request` varchar(1000) DEFAULT NULL,
  `team_leader_id` int(11) NOT NULL DEFAULT '0',
  `subgroups` int(11) NOT NULL DEFAULT '0',
  `score` int(11) NOT NULL DEFAULT '0',
  `name` varchar(100) DEFAULT NULL,
  `mobile` varchar(25) DEFAULT NULL,
  `reg_status` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `channel`
--
ALTER TABLE `channel`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `list`
--
ALTER TABLE `list`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `member`
--
ALTER TABLE `member`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=332849805;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 */;
