Projekt

Obecné

Profil

Stáhnout (3.03 KB) Statistiky
| Větev: | Tag: | Revize:
1 1e2b2c27 Tomáš Šimandl
-- 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
  `name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
32
  `created` datetime NOT NULL,
33 d4e61447 Tomáš Šimandl
  `last_update` datetime NOT NULL,
34 1e2b2c27 Tomáš Šimandl
  `user_id` int(11) NOT NULL,
35 81a8b64c Pavel Fidranský
  `public` tinyint(1) NOT NULL DEFAULT '0',
36
  `graph_json` text COLLATE utf8_czech_ci NOT NULL DEFAULT ''
37 1e2b2c27 Tomáš Šimandl
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
38
39
-- --------------------------------------------------------
40
41
--
42
-- Struktura tabulky `log`
43
--
44
45
CREATE TABLE IF NOT EXISTS `log` (
46
  `id` int(11) NOT NULL,
47
  `id_user` int(11) NOT NULL,
48
  `user_name` varchar(10) COLLATE utf8_czech_ci NOT NULL,
49
  `id_diagram` int(11) NOT NULL,
50
  `event` varchar(10) COLLATE utf8_czech_ci NOT NULL,
51
  `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
52
  `date_delay` datetime DEFAULT NULL,
53
  `change_jar` varchar(128) COLLATE utf8_czech_ci DEFAULT NULL,
54
  `new_version` varchar(128) COLLATE utf8_czech_ci DEFAULT NULL
55
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
56
57
-- --------------------------------------------------------
58
59
--
60
-- Struktura tabulky `user`
61
--
62
63
CREATE TABLE IF NOT EXISTS `user` (
64
  `id` int(11) NOT NULL,
65
  `nick` varchar(50) COLLATE utf8_czech_ci NOT NULL,
66
  `name` varchar(255) COLLATE utf8_czech_ci NOT NULL DEFAULT '',
67
  `psw` varchar(32) COLLATE utf8_czech_ci NOT NULL,
68
  `session` varchar(50) COLLATE utf8_czech_ci NOT NULL,
69
  `active` tinyint(1) NOT NULL,
70
  `created` datetime NOT NULL,
71
  `email` varchar(50) COLLATE utf8_czech_ci NOT NULL
72
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
73
74
75
--
76
-- Klíče pro exportované tabulky
77
--
78
79
--
80
-- Klíče pro tabulku `diagram`
81
--
82
ALTER TABLE `diagram`
83
  ADD PRIMARY KEY (`id`);
84
85
--
86
-- Klíče pro tabulku `log`
87
--
88
ALTER TABLE `log`
89
  ADD PRIMARY KEY (`id`);
90
91
--
92
-- Klíče pro tabulku `user`
93
--
94
ALTER TABLE `user`
95
  ADD PRIMARY KEY (`id`);
96
97
--
98
-- AUTO_INCREMENT pro tabulky
99
--
100
101
--
102
-- AUTO_INCREMENT pro tabulku `diagram`
103
--
104
ALTER TABLE `diagram`
105
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
106
--
107
-- AUTO_INCREMENT pro tabulku `log`
108
--
109
ALTER TABLE `log`
110
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
111
--
112
-- AUTO_INCREMENT pro tabulku `user`
113
--
114
ALTER TABLE `user`
115
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
116
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
117
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
118
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;