Created
March 5, 2009 11:11
-
-
Save mulka/74300 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | |
| -- Database: `infmos` | |
| -- | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `infmos` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `infmos` ( | |
| `infmosId` int(11) NOT NULL auto_increment, | |
| `photosetId` int(11) NOT NULL, | |
| `mosaicId` int(11) NOT NULL, | |
| `levels` int(2) NOT NULL, | |
| PRIMARY KEY (`infmosId`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `mosaic` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `mosaic` ( | |
| `mosaicId` int(11) NOT NULL auto_increment, | |
| `photoId` int(11) NOT NULL, | |
| `photosetId` int(11) NOT NULL, | |
| PRIMARY KEY (`mosaicId`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `mosaic-photos` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `mosaic-photos` ( | |
| `mosaicId` int(11) NOT NULL, | |
| `position` int(4) NOT NULL, | |
| `photoId` int(11) NOT NULL, | |
| UNIQUE KEY `mosaicId` (`mosaicId`,`position`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `photo` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `photo` ( | |
| `photoId` int(11) NOT NULL auto_increment, | |
| PRIMARY KEY (`photoId`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `photoset` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `photoset` ( | |
| `photosetId` int(11) NOT NULL auto_increment, | |
| PRIMARY KEY (`photosetId`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `photoset-photos` | |
| -- | |
| CREATE TABLE IF NOT EXISTS `photoset-photos` ( | |
| `photosetId` int(11) NOT NULL, | |
| `photoId` int(11) NOT NULL, | |
| PRIMARY KEY (`photosetId`), | |
| UNIQUE KEY `photosetId` (`photosetId`,`photoId`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment