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

--
-- Table structure for table `library_document_collection_quality`
--

CREATE TABLE `library_document_collection_quality` (
  `collection_source_id` int(11) NOT NULL,
  `collection_target_id` int(11) NOT NULL,
  `quality` varchar(255) NOT NULL,
  `id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

ALTER TABLE `library_document_collection_quality`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `library_document_collection_quality`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

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

--
-- Table structure for table `library_document_collection_quality_link`
--

CREATE TABLE `library_document_collection_quality_link` (
  `library_document_quality_id` int(11) NOT NULL,
  `library_document_source_id` int(11) NOT NULL,
  `library_document_target_id` int(11) NOT NULL,
  `quality_value` varchar(255) NOT NULL,
  `id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

ALTER TABLE `library_document_collection_quality_link`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `library_document_collection_quality_link`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;