sikevadb/scripts/create.sql

25 lines
831 B
MySQL
Raw Normal View History

2013-09-02 12:31:06 +02:00
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
-- --------------------------------------------------------
--
-- Structure de la table `elements`
--
DROP TABLE IF EXISTS `elements`;
CREATE TABLE IF NOT EXISTS `elements` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
2013-09-02 12:31:06 +02:00
`TOPKEY` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SUBKEY` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`VALUE` longtext COLLATE utf8_unicode_ci,
2013-09-02 12:31:06 +02:00
`SIZE` int(11) NOT NULL DEFAULT '0',
`DIGEST` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`CREATION_DATE` datetime NOT NULL,
`EDITION_DATE` datetime NOT NULL,
`ARCHIVE_DATE` datetime DEFAULT NULL,
PRIMARY KEY (`ID`),
KEY `XKEYINDEX` (`TOPKEY`,`SUBKEY`),
KEY `TOPKEYINDEX` (`TOPKEY`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;