 
 CREATE TABLE `file` (
   `file_id` int(11) NOT NULL AUTO_INCREMENT,
-  `rel_id` int(11) NOT NULL,
-  `module` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
   `name` varchar(80) COLLATE utf8_unicode_ci NOT NULL,
   `filepath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
   `ext` varchar(4) COLLATE utf8_unicode_ci NOT NULL,

  `timezone_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `gmt_offset` int(11) NOT NULL,
  PRIMARY KEY (`user_localization_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=240 ;

--
-- Dumping data for table `user_localization`
--

INSERT INTO `user_localization` VALUES(239, 'ec410631168ecda6fb4615d6715a5ea1', 0, 0, 'guest 0', '', 'index.php', '/RainCMS/', 2, 1342380238, 'Macintosh', 'e 3', 1342368622, '', '', '', '', '', 0, 0, 0, '', 0);

  `width` varchar(5) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `height` varchar(5) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `size` int(11) NOT NULL,
  `last_edit_time` int(11) NOT NULL,
  `read_access` tinyint(1) NOT NULL,
  PRIMARY KEY (`file_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ;

--
-- Dumping data for table `file`
--

INSERT INTO `file` (`file_id`, `name`, `filepath`, `ext`, `thumb`, `type_id`, `width`, `height`, `size`, `last_edit_time`, `read_access`) VALUES
(1, 'jhane-barnes.png', 'raincms.com/12/09/195773930d5e157267175bf1449f875a.png', 'png', 'raincms.com/12/09/t_195773930d5e157267175bf1449f875a.png', 1, '510', '347', 277904, 1348286111, 0),
(2, 'stock-photo-11655246-sewing-hands.png', 'raincms.com/12/09/1e52b6e0554094a1b66152bed9e15f31.png', 'png', 'raincms.com/12/09/t_1e52b6e0554094a1b66152bed9e15f31.png', 1, '510', '347', 263619, 1348286143, 0),
(3, 'newyork.png', 'raincms.com/12/09/5f6a4b96ef677bdaba2adbb1d5122c4b.png', 'png', 'raincms.com/12/09/t_5f6a4b96ef677bdaba2adbb1d5122c4b.png', 1, '1000', '666', 1014433, 1348323819, 0),
(4, 'newyork.png', 'raincms.com/12/09/f5125a0e8f523ed8129e43455f3596de.png', 'png', 'raincms.com/12/09/t_f5125a0e8f523ed8129e43455f3596de.png', 1, '1000', '666', 1014433, 1348323842, 0),
(5, 'IMG_0590.JPG', 'raincms.com/12/09/d4107fba754873d45084e49989c7f825.jpg', 'jpg', 'raincms.com/12/09/t_d4107fba754873d45084e49989c7f825.jpg', 1, '640', '480', 68618, 1348323929, 0),
(6, 'IMG_1058.JPG', 'raincms.com/12/09/4dfba1debbfdf735ce2b56d881fb4960.jpg', 'jpg', 'raincms.com/12/09/t_4dfba1debbfdf735ce2b56d881fb4960.jpg', 1, '600', '800', 134383, 1348323943, 0),
(7, 'IMG_0825.JPG', 'raincms.com/12/09/9a5bf28783ce6d519287d4c47a6bc5ad.jpg', 'jpg', 'raincms.com/12/09/t_9a5bf28783ce6d519287d4c47a6bc5ad.jpg', 1, '597', '800', 70255, 1348329131, 0),
(8, 'IMG_0638.JPG', 'raincms.com/12/09/90e9c1aac2ca444e25f053a2518f56f6.jpg', 'jpg', 'raincms.com/12/09/t_90e9c1aac2ca444e25f053a2518f56f6.jpg', 1, '640', '480', 81712, 1348329767, 0),
(9, 'IMG_0503.JPG', 'raincms.com/12/09/e0637c8715c4d4f14bb937a2f837f76d.jpg', 'jpg', 'raincms.com/12/09/t_e0637c8715c4d4f14bb937a2f837f76d.jpg', 1, '640', '480', 73165, 1348329940, 0),
(10, 'IMG_0590.JPG', 'raincms.com/12/09/d65dac1962ea933ea718fa453ad22ed1.jpg', 'jpg', 'raincms.com/12/09/t_d65dac1962ea933ea718fa453ad22ed1.jpg', 1, '640', '480', 68618, 1348329948, 0),
(11, 'IMG_1213.JPG', 'raincms.com/12/09/9a568d5d7dbeb1486ffe653c893aef10.jpg', 'jpg', 'raincms.com/12/09/t_9a568d5d7dbeb1486ffe653c893aef10.jpg', 1, '600', '800', 144283, 1348330025, 0);

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

--
-- Table structure for table `file_rel`
--

CREATE TABLE `file_rel` (
  `file_id` int(11) NOT NULL AUTO_INCREMENT,
  `rel_id` int(11) NOT NULL,
  `module` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `rel_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'FILE_LIST:0, FILE_EMBED:1, FILE_BLOCK:2, FILE_COVER:3',
  `position` int(11) NOT NULL,
  PRIMARY KEY (`file_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ;

--
-- Dumping data for table `file_rel`
--

INSERT INTO `file_rel` (`file_id`, `rel_id`, `module`, `rel_type`, `position`) VALUES
(1, 2, 'content', 0, 0),
(2, 13, 'content', 0, 0),
(3, 0, 'content', 0, 0),
(4, 0, 'content', 0, 0),
(5, 0, 'content', 0, 0),
(6, 0, 'content', 0, 0),
(7, 2, '', 0, 1);

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

