source: trunk/SQL/Updates/32.sql

Last change on this file was 32, checked in by george, 14 years ago
  • Upraveno: Třída pro obsluhu CGI aplikace přepracována na obecný HTTP server s podporou pro CGI HTTP server a přímý TCP HTTP server dle výběru zděděných tříd.
  • Přidáno: Podpůrné obecné třídy ve složce Common.
  • Přidáno: Komponenta Synapse pro obsluhu TCP spojení.
File size: 1.5 KB
Line 
1CREATE TABLE IF NOT EXISTS `User` (
2 `Id` int(11) NOT NULL AUTO_INCREMENT,
3 `FullName` varchar(255) NOT NULL,
4 `Name` varchar(255) NOT NULL,
5 `Password` varchar(255) NOT NULL,
6 `Salt` varchar(255) NOT NULL,
7 `Company` int(11) DEFAULT NULL,
8 `RegistrationTime` datetime DEFAULT NULL,
9 `Email` varchar(255) NOT NULL,
10 PRIMARY KEY (`Id`),
11 UNIQUE KEY `Name` (`Name`),
12 KEY `Company` (`Company`),
13 KEY `Password` (`Password`)
14) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
15
16-- --------------------------------------------------------
17
18--
19-- Struktura tabulky `UserOnline`
20--
21
22CREATE TABLE IF NOT EXISTS `UserOnline` (
23 `Id` int(11) NOT NULL AUTO_INCREMENT,
24 `User` int(11) NOT NULL DEFAULT '0',
25 `ActivityTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
26 `LoginTime` datetime DEFAULT '0000-00-00 00:00:00',
27 `SessionId` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL DEFAULT '',
28 `IpAddress` varchar(16) CHARACTER SET utf8 COLLATE utf8_czech_ci DEFAULT NULL,
29 `HostName` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci DEFAULT NULL,
30 `ScriptName` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci DEFAULT NULL,
31 PRIMARY KEY (`Id`),
32 KEY `User` (`User`),
33 KEY `SessionId` (`SessionId`)
34) ENGINE=MEMORY DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
35
36CREATE TABLE IF NOT EXISTS `HTTPSession` (
37 `Id` int(11) NOT NULL AUTO_INCREMENT,
38 `Time` datetime NOT NULL,
39 `Identification` varchar(255) NOT NULL,
40 `Variables` text NOT NULL,
41 PRIMARY KEY (`Id`)
42) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Note: See TracBrowser for help on using the repository browser.