Ignore:
Timestamp:
Oct 21, 2008, 4:15:52 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Prozatím jednoduché oprávnění pro čtení a zápis k jednotlivým seznamům.
  • Přidáno: Typ GPS souřadnice.
  • Opraveno: Převod přes hašovací funkci SHA1 u typu Password.
  • Upraveno: Možnost vybrat variantu Žádný u odkazů.
  • Opraveno: Součinost modulu User s časovou databázovou strukturou.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sql/system_structure.sql

    r11 r18  
    44--
    55-- Počítač: localhost
    6 -- Vygenerováno: Pondělí 13. října 2008, 08:00
     6-- Vygenerováno: Úterý 21. října 2008, 16:14
    77-- Verze MySQL: 5.0.51
    88-- Verze PHP: 5.2.6
     
    1717
    1818--
     19-- Struktura tabulky `Permission`
     20--
     21
     22CREATE TABLE IF NOT EXISTS `Permission` (
     23  `Id` int(11) NOT NULL auto_increment,
     24  `ItemId` int(11) NOT NULL,
     25  `Author` int(11) NOT NULL,
     26  `ValidTimeFrom` datetime default NULL,
     27  `ValidTimeTo` datetime default NULL,
     28  `CreationTime` datetime default NULL,
     29  `DeletionTime` datetime default NULL,
     30  `List` int(11) NOT NULL,
     31  `Item` int(11) NOT NULL,
     32  `Right` int(11) NOT NULL,
     33  `PermissionGroup` int(11) NOT NULL,
     34  PRIMARY KEY  (`Id`)
     35) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=43 ;
     36
     37-- --------------------------------------------------------
     38
     39--
     40-- Struktura tabulky `PermissionGroup`
     41--
     42
     43CREATE TABLE IF NOT EXISTS `PermissionGroup` (
     44  `Id` int(11) NOT NULL auto_increment,
     45  `ItemId` int(11) NOT NULL,
     46  `Author` int(11) NOT NULL,
     47  `ValidTimeFrom` datetime default NULL,
     48  `ValidTimeTo` datetime default NULL,
     49  `CreationTime` datetime default NULL,
     50  `DeletionTime` datetime default NULL,
     51  `Name` varchar(255) collate utf8_czech_ci NOT NULL,
     52  `PermissionList` int(11) NOT NULL,
     53  `UserList` int(11) NOT NULL,
     54  PRIMARY KEY  (`Id`)
     55) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=8 ;
     56
     57-- --------------------------------------------------------
     58
     59--
     60-- Struktura tabulky `SystemFile`
     61--
     62
     63CREATE TABLE IF NOT EXISTS `SystemFile` (
     64  `Id` int(11) NOT NULL auto_increment,
     65  `Name` varchar(255) collate utf8_czech_ci NOT NULL,
     66  `Content` mediumblob NOT NULL,
     67  PRIMARY KEY  (`Id`)
     68) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=5 ;
     69
     70-- --------------------------------------------------------
     71
     72--
     73-- Struktura tabulky `SystemGPS`
     74--
     75
     76CREATE TABLE IF NOT EXISTS `SystemGPS` (
     77  `Id` int(11) NOT NULL auto_increment,
     78  `Longitude` double NOT NULL,
     79  `Latitude` double NOT NULL,
     80  PRIMARY KEY  (`Id`)
     81) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=32 ;
     82
     83-- --------------------------------------------------------
     84
     85--
    1986-- Struktura tabulky `SystemList`
    2087--
     
    3097  `TableName` varchar(255) collate utf8_czech_ci NOT NULL,
    3198  `Title` varchar(255) collate utf8_czech_ci NOT NULL,
    32   `System` tinyint(1) NOT NULL,
    3399  `Items` varchar(255) collate utf8_czech_ci NOT NULL,
    34   `VisibleInMenu` int(11) NOT NULL default '1',
    35   PRIMARY KEY  (`Id`)
    36 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=32 ;
     100  `Menu` int(11) NOT NULL,
     101  PRIMARY KEY  (`Id`)
     102) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=75 ;
    37103
    38104-- --------------------------------------------------------
     
    62128  `List` int(11) NOT NULL,
    63129  PRIMARY KEY  (`Id`)
    64 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=143 ;
     130) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=184 ;
     131
     132-- --------------------------------------------------------
     133
     134--
     135-- Struktura tabulky `SystemLog`
     136--
     137
     138CREATE TABLE IF NOT EXISTS `SystemLog` (
     139  `Id` int(11) NOT NULL auto_increment,
     140  `ItemId` int(11) NOT NULL,
     141  `Author` int(11) NOT NULL,
     142  `ValidTimeFrom` datetime default NULL,
     143  `ValidTimeTo` datetime default NULL,
     144  `CreationTime` datetime default NULL,
     145  `DeletionTime` datetime default NULL,
     146  `User` int(11) NOT NULL,
     147  `List` int(11) NOT NULL,
     148  `Item` int(11) NOT NULL,
     149  `Action` int(11) NOT NULL,
     150  PRIMARY KEY  (`Id`)
     151) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=238 ;
     152
     153-- --------------------------------------------------------
     154
     155--
     156-- Struktura tabulky `SystemMenu`
     157--
     158
     159CREATE TABLE IF NOT EXISTS `SystemMenu` (
     160  `Id` int(11) NOT NULL auto_increment,
     161  `ItemId` int(11) NOT NULL,
     162  `Author` int(11) NOT NULL,
     163  `ValidTimeFrom` datetime default NULL,
     164  `ValidTimeTo` datetime default NULL,
     165  `CreationTime` datetime default NULL,
     166  `DeletionTime` datetime default NULL,
     167  `Name` varchar(255) collate utf8_czech_ci NOT NULL,
     168  `SystemListItems` int(11) NOT NULL,
     169  PRIMARY KEY  (`Id`)
     170) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=5 ;
    65171
    66172-- --------------------------------------------------------
     
    84190  `System` tinyint(1) NOT NULL default '0',
    85191  `DbDataType` varchar(255) collate utf8_czech_ci NOT NULL,
     192  PRIMARY KEY  (`Id`)
     193) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=57 ;
     194
     195-- --------------------------------------------------------
     196
     197--
     198-- Struktura tabulky `User`
     199--
     200
     201CREATE TABLE IF NOT EXISTS `User` (
     202  `Id` int(11) NOT NULL auto_increment,
     203  `ItemId` int(11) NOT NULL,
     204  `Author` int(11) NOT NULL,
     205  `ValidTimeFrom` datetime default NULL,
     206  `ValidTimeTo` datetime default NULL,
     207  `CreationTime` datetime default NULL,
     208  `DeletionTime` datetime default NULL,
     209  `UserName` varchar(255) collate utf8_czech_ci NOT NULL,
     210  `Password` varchar(255) collate utf8_czech_ci NOT NULL,
     211  `FirstName` varchar(255) character set ucs2 collate ucs2_czech_ci NOT NULL,
     212  `SecondName` varchar(255) character set ucs2 collate ucs2_czech_ci NOT NULL,
     213  `Email` varchar(255) character set ucs2 collate ucs2_czech_ci NOT NULL,
     214  `ICQ` int(11) NOT NULL,
     215  `Sex` int(11) NOT NULL default '0',
     216  `BirthDay` date NOT NULL,
     217  `Phone` varchar(255) collate utf8_czech_ci NOT NULL,
     218  `Member` int(11) NOT NULL,
     219  `RegistrationTime` datetime NOT NULL,
     220  `LastLoginTime` datetime NOT NULL,
     221  `Locked` tinyint(1) NOT NULL,
     222  `LastIpAddress` varchar(255) collate utf8_czech_ci NOT NULL,
     223  `PermissionGroup` int(11) NOT NULL,
     224  PRIMARY KEY  (`Id`)
     225) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=36 ;
     226
     227-- --------------------------------------------------------
     228
     229--
     230-- Struktura tabulky `UserOnline`
     231--
     232
     233CREATE TABLE IF NOT EXISTS `UserOnline` (
     234  `User` int(11) NOT NULL,
     235  `LoginTime` datetime NOT NULL,
     236  `ActivityTime` datetime NOT NULL,
     237  `SessionId` varchar(255) collate utf8_czech_ci NOT NULL,
     238  `IpAddress` varchar(16) collate utf8_czech_ci NOT NULL,
     239  `HostName` varchar(255) collate utf8_czech_ci NOT NULL,
     240  `Id` int(11) NOT NULL auto_increment,
     241  `ItemId` int(11) NOT NULL,
     242  `Author` int(11) NOT NULL,
     243  `ValidTimeFrom` datetime default NULL,
     244  `ValidTimeTo` datetime default NULL,
     245  `CreationTime` datetime default NULL,
     246  `DeletionTime` datetime default NULL,
    86247  PRIMARY KEY  (`Id`),
    87   UNIQUE KEY `Name` (`Name`)
    88 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=39 ;
     248  KEY `User` (`User`)
     249) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=28 ;
Note: See TracChangeset for help on using the changeset viewer.