-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
62 lines (51 loc) · 1.39 KB
/
schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--
-- Tabellenstruktur für Tabelle `connections`
--
CREATE TABLE `connections` (
`id` mediumint(8) UNSIGNED NOT NULL,
`origin_name` varchar(100) NOT NULL,
`target_name` varchar(100) NOT NULL,
`origin_user` varchar(100) NOT NULL,
`target_user` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `zettel`
--
CREATE TABLE `zettel` (
`id` mediumint(8) UNSIGNED NOT NULL,
`name` varchar(100) NOT NULL,
`title` varchar(100) DEFAULT NULL,
`user` varchar(100) DEFAULT NULL,
`words` mediumint(8) UNSIGNED DEFAULT NULL,
`tag` varchar(100) DEFAULT NULL,
`date_creation` date DEFAULT NULL,
`date_modified` date DEFAULT NULL,
`access` smallint(6) UNSIGNED DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indizes der exportierten Tabellen
--
--
-- Indizes für die Tabelle `connections`
--
ALTER TABLE `connections`
ADD PRIMARY KEY (`id`);
--
-- Indizes für die Tabelle `zettel`
--
ALTER TABLE `zettel`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT für exportierte Tabellen
--
--
-- AUTO_INCREMENT für Tabelle `connections`
--
ALTER TABLE `connections`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0;
--
-- AUTO_INCREMENT für Tabelle `zettel`
--
ALTER TABLE `zettel`
MODIFY `id` smallint(6) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0;