-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `sells`
--

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

--
-- Table structure for table `book`
--

CREATE TABLE `book` (
  `id` int(11) NOT NULL,
  `book_name` varchar(200) NOT NULL,
  `book_page` int(5) NOT NULL,
  `price` varchar(50) NOT NULL,
  `del` int(2) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `book`
--

INSERT INTO `book` (`id`, `book_name`, `book_page`, `price`, `del`) VALUES
(1, 'دختران جسور', 100, '120000', 0),
(2, 'دختر مهتاب	', 400, '400000', 0),
(3, 'دختری که ماه را نوشید', 200, '220000', 0);

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

--
-- Table structure for table `books`
--

CREATE TABLE `books` (
  `id` int(11) NOT NULL,
  `books_name` varchar(100) NOT NULL,
  `books_page` varchar(5) NOT NULL,
  `price` varchar(8) NOT NULL,
  `del` int(2) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `books`
--

INSERT INTO `books` (`id`, `books_name`, `books_page`, `price`, `del`) VALUES
(0, 'دختران جسور', '100', '120000', 1),
(1, 'دختر مهتاب', '400', '400000', 1),
(2, 'دختری که ماه را نوشید', '200', '220000', 1);

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

--
-- Table structure for table `sells`
--

CREATE TABLE `sells` (
  `id` int(11) NOT NULL,
  `user_id` varchar(10) NOT NULL,
  `book_name` varchar(100) NOT NULL,
  `price` varchar(7) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `sells`
--

INSERT INTO `sells` (`id`, `user_id`, `book_name`, `price`) VALUES
(1, '1', '3', '400');

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

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

CREATE TABLE `user` (
  `id` int(8) NOT NULL,
  `user_name` varchar(10) NOT NULL,
  `mobile` varchar(11) NOT NULL,
  `password` varchar(8) NOT NULL,
  `namefull` varchar(100) NOT NULL,
  `del` varchar(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`id`, `user_name`, `mobile`, `password`, `namefull`, `del`) VALUES
(1, 'zahra7bgr', '09120771566', 'zhr27bgr', 'zahra bagheri', '1'),
(2, 'samina6bgr', '09229129538', 'smn26bgr', 'samina bagheri', '1'),
(3, 'mahdis', '09199662717', 'mhd12rgi', 'mahdis rajabi', '1'),
(4, 'mehrad', '09195622908', 'mhr2rgi', 'mehrad rajabi', '1');

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `book`
--
ALTER TABLE `book`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;

