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

START TRANSACTION;



--
-- Database: `zahra`
--

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

--
-- 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

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

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

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

--
-- 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');

--
-- Indexes for dumped tables
--

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

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

