--
-- Host: localhost    Database: pset7
-- ------------------------------------------------------


--
-- Table structure for table `history`
--

CREATE TABLE `history` (
  `id` int(10) NOT NULL,
  `transaction_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `symbol` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `price` decimal(65,4) NOT NULL,
  `date_time` datetime NOT NULL,
  `shares` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `history`
--


--
-- Table structure for table `portfolios`
--

CREATE TABLE `portfolios` (
  `id` int(10) NOT NULL,
  `symbol` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `shares` int(11) NOT NULL,
  PRIMARY KEY (`id`,`symbol`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `portfolios`
--

INSERT INTO `portfolios` VALUES (1,'GOOG',2),(1,'TXT',3),(2,'GOOG',2),(2,'TXT',3),(3,'GOOG',2),(3,'TXT',3),(4,'GOOG',2),(4,'TXT',3),(5,'GOOG',2),(5,'TXT',3),(6,'GOOG',2),(6,'TXT',3),(7,'GOOG',2),(7,'TXT',3);


