-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Sep 30, 2024 at 04:50 PM
-- Server version: 8.0.39-cll-lve
-- PHP Version: 8.1.29

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

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

--
-- Table structure for table `admins`
--

CREATE TABLE `admins` (
  `idadmin` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `nameadmin` varchar(100) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `content` varchar(5) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `jaigah` varchar(5) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `sendstat` varchar(5) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `joinch` varchar(5) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `botoffon` varchar(5) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `blockunblock` varchar(5) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `supreply` varchar(10) COLLATE utf8mb4_persian_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

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

--
-- Table structure for table `buttons`
--

CREATE TABLE `buttons` (
  `id` int NOT NULL,
  `code` int DEFAULT NULL,
  `namebutindex` varchar(100) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `file_idindex` varchar(500) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `captionindex` text COLLATE utf8mb4_persian_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

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

--
-- Table structure for table `buttonssub`
--

CREATE TABLE `buttonssub` (
  `id` int NOT NULL,
  `code` int DEFAULT NULL,
  `namebut` varchar(100) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `file_id` varchar(500) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `caption` text COLLATE utf8mb4_persian_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

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

--
-- Table structure for table `channels`
--

CREATE TABLE `channels` (
  `idoruser` varchar(30) COLLATE utf8mb4_persian_ci NOT NULL,
  `link` varchar(200) COLLATE utf8mb4_persian_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

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

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `botid` varchar(30) COLLATE utf8mb4_persian_ci NOT NULL,
  `bot_mode` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `forall` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `sendall` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `tedad` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `text` text COLLATE utf8mb4_persian_ci NOT NULL,
  `chat_id` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `is_all` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `factwebir` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `msg_id` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `supportbut` varchar(5) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `supportname` varchar(100) COLLATE utf8mb4_persian_ci DEFAULT NULL,
  `supporttext` text COLLATE utf8mb4_persian_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`botid`, `bot_mode`, `forall`, `sendall`, `tedad`, `text`, `chat_id`, `is_all`, `factwebir`, `msg_id`, `supportbut`, `supportname`, `supporttext`) VALUES
('6313095884', 'on', 'false', 'false', '0', 'none', 'none', 'no', '1', 'none', 'on', 'پشتیبانی', 'سوال خود را مطرح کنید');

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

--
-- Table structure for table `tickets`
--

CREATE TABLE `tickets` (
  `code` int NOT NULL,
  `msgid` int DEFAULT NULL,
  `admin_id` varchar(20) DEFAULT NULL,
  `pasokhgo` varchar(20) DEFAULT NULL,
  `replytext` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

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

CREATE TABLE `user` (
  `id` bigint NOT NULL,
  `step` varchar(100) COLLATE utf8mb4_persian_ci NOT NULL,
  `step2` varchar(2000) COLLATE utf8mb4_persian_ci NOT NULL,
  `step3` varchar(2000) COLLATE utf8mb4_persian_ci NOT NULL,
  `step4` varchar(500) COLLATE utf8mb4_persian_ci NOT NULL,
  `step5` varchar(500) COLLATE utf8mb4_persian_ci NOT NULL,
  `spam` varchar(20) COLLATE utf8mb4_persian_ci NOT NULL,
  `name` varchar(100) COLLATE utf8mb4_persian_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admins`
--
ALTER TABLE `admins`
  ADD PRIMARY KEY (`idadmin`);

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

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

--
-- Indexes for table `channels`
--
ALTER TABLE `channels`
  ADD PRIMARY KEY (`idoruser`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`botid`);

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `buttons`
--
ALTER TABLE `buttons`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `buttonssub`
--
ALTER TABLE `buttonssub`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;
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 */;
