source: trunk/SQL/Structure.sql

Last change on this file was 109, checked in by chronos, 12 years ago
  • Přidáno: Struktura databáze.
File size: 4.5 KB
Line 
1-- phpMyAdmin SQL Dump
2-- version 3.4.7.1
3-- http://www.phpmyadmin.net
4--
5-- Host: localhost
6-- Generation Time: Apr 21, 2013 at 10:11 PM
7-- Server version: 5.1.60
8-- PHP Version: 5.3.8
9
10SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11SET time_zone = "+00:00";
12
13--
14-- Database: `www`
15--
16
17-- --------------------------------------------------------
18
19--
20-- Table structure for table `History`
21--
22
23CREATE TABLE IF NOT EXISTS `History` (
24 `Id` int(11) NOT NULL AUTO_INCREMENT,
25 `Date` date NOT NULL,
26 `Text` text COLLATE utf8_czech_ci NOT NULL,
27 PRIMARY KEY (`Id`)
28) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=28 ;
29
30-- --------------------------------------------------------
31
32--
33-- Table structure for table `HostedProject`
34--
35
36CREATE TABLE IF NOT EXISTS `HostedProject` (
37 `Id` int(11) NOT NULL AUTO_INCREMENT,
38 `Name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
39 `Homepage` varchar(255) COLLATE utf8_czech_ci NOT NULL,
40 `User` int(255) NOT NULL COMMENT 'User.Id',
41 `TimeCreate` datetime NOT NULL,
42 `Server` int(11) DEFAULT NULL COMMENT 'NetworkDevice.Id',
43 `Active` int(11) NOT NULL DEFAULT '1',
44 `WebHosting` int(11) NOT NULL,
45 PRIMARY KEY (`Id`)
46) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=38 ;
47
48-- --------------------------------------------------------
49
50--
51-- Table structure for table `HTTPSession`
52--
53
54CREATE TABLE IF NOT EXISTS `HTTPSession` (
55 `Id` int(11) NOT NULL AUTO_INCREMENT,
56 `Time` datetime NOT NULL,
57 `Identification` varchar(255) NOT NULL,
58 `Variables` text NOT NULL,
59 PRIMARY KEY (`Id`)
60) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
61
62-- --------------------------------------------------------
63
64--
65-- Table structure for table `Plans`
66--
67
68CREATE TABLE IF NOT EXISTS `Plans` (
69 `Id` int(11) NOT NULL AUTO_INCREMENT,
70 `TimeCreate` datetime NOT NULL,
71 `TimeFinished` datetime DEFAULT NULL,
72 `Description` text COLLATE utf8_czech_ci NOT NULL,
73 `Conclusion` text COLLATE utf8_czech_ci NOT NULL,
74 `Public` int(11) NOT NULL DEFAULT '0',
75 PRIMARY KEY (`Id`),
76 KEY `TimeCreate` (`TimeCreate`),
77 KEY `TimeFinished` (`TimeFinished`)
78) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=18 ;
79
80-- --------------------------------------------------------
81
82--
83-- Table structure for table `User`
84--
85
86CREATE TABLE IF NOT EXISTS `User` (
87 `Id` int(11) NOT NULL AUTO_INCREMENT,
88 `Name` varchar(255) NOT NULL,
89 `FullName` varchar(255) NOT NULL,
90 `Password` varchar(255) NOT NULL,
91 `Salt` varchar(255) NOT NULL,
92 `Email` varchar(255) NOT NULL,
93 `RegistrationTime` datetime NOT NULL,
94 PRIMARY KEY (`Id`)
95) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
96
97-- --------------------------------------------------------
98
99--
100-- Table structure for table `UserOnline`
101--
102
103CREATE TABLE IF NOT EXISTS `UserOnline` (
104 `Id` int(11) NOT NULL AUTO_INCREMENT,
105 `User` int(11) NOT NULL DEFAULT '0',
106 `ActivityTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
107 `LoginTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
108 `SessionId` varchar(255) COLLATE utf8_czech_ci NOT NULL DEFAULT '',
109 `IpAddress` varchar(16) COLLATE utf8_czech_ci NOT NULL DEFAULT '',
110 `HostName` varchar(255) COLLATE utf8_czech_ci NOT NULL DEFAULT '',
111 `ScriptName` varchar(255) COLLATE utf8_czech_ci NOT NULL,
112 PRIMARY KEY (`Id`),
113 KEY `User` (`User`)
114) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=2 ;
115
116-- --------------------------------------------------------
117
118--
119-- Table structure for table `VPSHosting`
120--
121
122CREATE TABLE IF NOT EXISTS `VPSHosting` (
123 `Id` int(11) NOT NULL AUTO_INCREMENT,
124 `Name` varchar(255) NOT NULL,
125 `Memory` varchar(255) NOT NULL,
126 `Space` varchar(255) NOT NULL,
127 `Internet` varchar(255) NOT NULL,
128 `CPU` varchar(255) NOT NULL,
129 `Price` int(11) NOT NULL,
130 PRIMARY KEY (`Id`)
131) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
132
133-- --------------------------------------------------------
134
135--
136-- Table structure for table `Webcam`
137--
138
139CREATE TABLE IF NOT EXISTS `Webcam` (
140 `Id` int(11) NOT NULL AUTO_INCREMENT,
141 `Name` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
142 `Description` text CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
143 `ImageName` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
144 `ImageURL` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
145 `ImagePeriod` int(11) NOT NULL,
146 `Width` int(11) NOT NULL,
147 `Height` int(11) NOT NULL,
148 `Enabled` int(11) NOT NULL DEFAULT '1',
149 `DeviceType` varchar(255) NOT NULL,
150 PRIMARY KEY (`Id`)
151) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
Note: See TracBrowser for help on using the repository browser.