Projekt

Obecné

Profil

Stáhnout (3.16 KB) Statistiky
| Větev: | Tag: | Revize:
1
-- phpMyAdmin SQL Dump
2
-- version 4.4.14
3
-- http://www.phpmyadmin.net
4
--
5
-- Počítač: 127.0.0.1
6
-- Vytvořeno: Stř 11. kvě 2016, 16:08
7
-- Verze serveru: 5.6.26
8
-- Verze PHP: 5.6.12
9

    
10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
SET time_zone = "+00:00";
12

    
13

    
14
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17
/*!40101 SET NAMES utf8mb4 */;
18

    
19
--
20
-- Databáze: `visualization_tool`
21
--
22

    
23
-- --------------------------------------------------------
24

    
25
--
26
-- Struktura tabulky `diagram`
27
--
28

    
29
CREATE TABLE IF NOT EXISTS `diagram` (
30
  `id` int(11) NOT NULL,
31
  `session_id` varchar(32) COLLATE utf8_czech_ci NOT NULL,
32
  `name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
33
  `component_count` int(11) NOT NULL DEFAULT '0',
34
  `created` datetime NOT NULL,
35
  `user_id` int(11) NOT NULL,
36
  `vertices_position` text COLLATE utf8_czech_ci NOT NULL,
37
  `hash` varchar(32) COLLATE utf8_czech_ci NOT NULL DEFAULT '',
38
  `public` tinyint(1) NOT NULL DEFAULT '0'
39
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
40

    
41
-- --------------------------------------------------------
42

    
43
--
44
-- Struktura tabulky `log`
45
--
46

    
47
CREATE TABLE IF NOT EXISTS `log` (
48
  `id` int(11) NOT NULL,
49
  `id_user` int(11) NOT NULL,
50
  `user_name` varchar(10) COLLATE utf8_czech_ci NOT NULL,
51
  `id_diagram` int(11) NOT NULL,
52
  `event` varchar(10) COLLATE utf8_czech_ci NOT NULL,
53
  `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
54
  `date_delay` datetime DEFAULT NULL,
55
  `change_jar` varchar(128) COLLATE utf8_czech_ci DEFAULT NULL,
56
  `new_version` varchar(128) COLLATE utf8_czech_ci DEFAULT NULL
57
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
58

    
59
-- --------------------------------------------------------
60

    
61
--
62
-- Struktura tabulky `user`
63
--
64

    
65
CREATE TABLE IF NOT EXISTS `user` (
66
  `id` int(11) NOT NULL,
67
  `nick` varchar(50) COLLATE utf8_czech_ci NOT NULL,
68
  `name` varchar(255) COLLATE utf8_czech_ci NOT NULL DEFAULT '',
69
  `psw` varchar(32) COLLATE utf8_czech_ci NOT NULL,
70
  `session` varchar(50) COLLATE utf8_czech_ci NOT NULL,
71
  `active` tinyint(1) NOT NULL,
72
  `created` datetime NOT NULL,
73
  `email` varchar(50) COLLATE utf8_czech_ci NOT NULL
74
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
75

    
76

    
77
--
78
-- Klíče pro exportované tabulky
79
--
80

    
81
--
82
-- Klíče pro tabulku `diagram`
83
--
84
ALTER TABLE `diagram`
85
  ADD PRIMARY KEY (`id`);
86

    
87
--
88
-- Klíče pro tabulku `log`
89
--
90
ALTER TABLE `log`
91
  ADD PRIMARY KEY (`id`);
92

    
93
--
94
-- Klíče pro tabulku `user`
95
--
96
ALTER TABLE `user`
97
  ADD PRIMARY KEY (`id`);
98

    
99
--
100
-- AUTO_INCREMENT pro tabulky
101
--
102

    
103
--
104
-- AUTO_INCREMENT pro tabulku `diagram`
105
--
106
ALTER TABLE `diagram`
107
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
108
--
109
-- AUTO_INCREMENT pro tabulku `log`
110
--
111
ALTER TABLE `log`
112
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
113
--
114
-- AUTO_INCREMENT pro tabulku `user`
115
--
116
ALTER TABLE `user`
117
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
118
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
119
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
120
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
(1-1/2)