-- http://www.phpmyadmin.net
--




--
-- Database: `bust_that_nut`
--

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

--
-- Table structure for table `cards`
--

CREATE TABLE `cards` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `category` int(11) DEFAULT NULL,
  `level` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cards`
--

INSERT INTO `cards` (`id`, `name`, `category`, `level`) VALUES
(1, NULL, 1, 1),
(2, NULL, 1, 1),
(3, NULL, 1, 1),
(4, NULL, 1, 1),
(5, NULL, 1, 1),
(6, NULL, 1, 1),
(7, NULL, 1, 1),
(8, NULL, 1, 1),
(9, NULL, 1, 1),
(10, NULL, 1, 1),
(11, NULL, 1, 1),
(12, NULL, 1, 1),
(13, NULL, 1, 1),
(14, NULL, 1, 1),
(15, NULL, 1, 1),
(16, NULL, 2, 1),
(17, NULL, 2, 1),
(18, NULL, 2, 1),
(19, NULL, 2, 1),
(20, NULL, 2, 1),
(21, NULL, 2, 1),
(22, NULL, 2, 1),
(23, NULL, 2, 1),
(24, NULL, 2, 1),
(25, NULL, 2, 1),
(26, NULL, 3, 1),
(27, NULL, 3, 1),
(28, NULL, 3, 1),
(29, NULL, 3, 1),
(30, NULL, 3, 1),
(31, NULL, 1, 2),
(32, NULL, 1, 2),
(33, NULL, 1, 2),
(34, NULL, 1, 2),
(35, NULL, 1, 2),
(36, NULL, 1, 2),
(37, NULL, 1, 2),
(38, NULL, 1, 2),
(39, NULL, 1, 2),
(40, NULL, 1, 2),
(41, NULL, 1, 2),
(42, NULL, 1, 2),
(43, NULL, 2, 2),
(44, NULL, 2, 2),
(45, NULL, 2, 2),
(46, NULL, 2, 2),
(47, NULL, 2, 2),
(48, NULL, 2, 2),
(49, NULL, 2, 2),
(50, NULL, 2, 2),
(51, NULL, 2, 2),
(52, NULL, 2, 2),
(53, NULL, 3, 2),
(54, NULL, 3, 2),
(55, NULL, 3, 2),
(56, NULL, 3, 2),
(57, NULL, 3, 2),
(58, NULL, 3, 2),
(59, NULL, 3, 2),
(60, NULL, 3, 2),
(61, NULL, 1, 3),
(62, NULL, 1, 3),
(63, NULL, 1, 3),
(64, NULL, 1, 3),
(65, NULL, 1, 3),
(66, NULL, 1, 3),
(67, NULL, 1, 3),
(68, NULL, 1, 3),
(69, NULL, 1, 3),
(70, NULL, 1, 3),
(71, NULL, 2, 3),
(72, NULL, 2, 3),
(73, NULL, 2, 3),
(74, NULL, 2, 3),
(75, NULL, 2, 3),
(76, NULL, 2, 3),
(77, NULL, 2, 3),
(78, NULL, 2, 3),
(79, NULL, 2, 3),
(80, NULL, 2, 3),
(81, NULL, 3, 3),
(82, NULL, 3, 3),
(83, NULL, 3, 3),
(84, NULL, 3, 3),
(85, NULL, 3, 3),
(86, NULL, 3, 3),
(87, NULL, 3, 3),
(88, NULL, 3, 3),
(89, NULL, 3, 3),
(90, NULL, 3, 3);

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

--
-- Table structure for table `cards_buy_logs`
--

CREATE TABLE `cards_buy_logs` (
  `id` int(11) NOT NULL,
  `total_cards` int(11) DEFAULT NULL,
  `per_cards_price` int(11) DEFAULT NULL,
  `card_id` int(11) DEFAULT NULL,
  `buyer_user_id` int(11) DEFAULT NULL,
  `seller_user_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `cards_for_sell`
--

CREATE TABLE `cards_for_sell` (
  `id` int(11) NOT NULL,
  `card_id` int(11) DEFAULT NULL,
  `per_card_price` double DEFAULT NULL,
  `total_cards` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cards_for_sell`
--

INSERT INTO `cards_for_sell` (`id`, `card_id`, `per_card_price`, `total_cards`, `user_id`) VALUES
(1, 1, 24, 0, 3),
(2, 23, 22, 2, 3),
(3, 1, 42, 0, 3);

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

--
-- Table structure for table `user_cards`
--

CREATE TABLE `user_cards` (
  `id` int(11) NOT NULL,
  `card_id` int(11) DEFAULT NULL,
  `total_cards` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_cards`
--

INSERT INTO `user_cards` (`id`, `card_id`, `total_cards`, `user_id`) VALUES
(1, 3, 4, 3),
(2, 1, 1, 3),
(3, 2, 4, 3),
(4, 23, 4, 3),
(5, 33, 4, 3),
(6, 43, 4, 3),
(7, 63, 4, 3),
(8, 73, 4, 3),
(9, 83, 4, 3),
(10, 66, 4, 3),
(11, 3, 4, 9),
(12, 13, 4, 9),
(13, 29, 4, 9),
(14, 26, 4, 9),
(15, 36, 4, 9),
(16, 46, 4, 9),
(17, 56, 4, 9),
(18, 66, 4, 9),
(19, 76, 4, 9),
(20, 86, 4, 9),
(21, 1, 3, 9);

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `cards`
--
ALTER TABLE `cards`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=91;
--
-- AUTO_INCREMENT for table `cards_buy_logs`
--
ALTER TABLE `cards_buy_logs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `cards_for_sell`
--
ALTER TABLE `cards_for_sell`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `user_cards`
--
ALTER TABLE `user_cards`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
