-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.xml
100 lines (96 loc) · 3.91 KB
/
database.xml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="utf-8"?>
<pma_xml_export version="1.0" xmlns:pma="https://www.phpmyadmin.net/some_doc_url/">
<pma:structure_schemas>
<pma:database name="athleticsdb" collation="utf8mb4_general_ci" charset="utf8mb4">
<pma:table name="results">
CREATE TABLE `results` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`startlist_id` int(11) NOT NULL,
`result` tinyint(3) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_startlist_id` (`startlist_id`),
CONSTRAINT `fk_startlist_id` FOREIGN KEY (`startlist_id`) REFERENCES `startlist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
</pma:table>
<pma:table name="startlist">
CREATE TABLE `startlist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`surname` varchar(255) NOT NULL,
`category` varchar(3) NOT NULL,
`pb` tinyint(3) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
</pma:table>
</pma:database>
</pma:structure_schemas>
<database name="athleticsdb">
<table name="results">
<column name="id">2</column>
<column name="startlist_id">32</column>
<column name="result">23</column>
</table>
<table name="results">
<column name="id">3</column>
<column name="startlist_id">33</column>
<column name="result">12</column>
</table>
<table name="results">
<column name="id">4</column>
<column name="startlist_id">34</column>
<column name="result">12</column>
</table>
<table name="results">
<column name="id">5</column>
<column name="startlist_id">32</column>
<column name="result">23</column>
</table>
<table name="results">
<column name="id">6</column>
<column name="startlist_id">33</column>
<column name="result">12</column>
</table>
<table name="results">
<column name="id">7</column>
<column name="startlist_id">34</column>
<column name="result">12</column>
</table>
<table name="results">
<column name="id">8</column>
<column name="startlist_id">32</column>
<column name="result">23</column>
</table>
<table name="results">
<column name="id">9</column>
<column name="startlist_id">33</column>
<column name="result">12</column>
</table>
<table name="results">
<column name="id">10</column>
<column name="startlist_id">34</column>
<column name="result">12</column>
</table>
<!-- Tabulka startlist -->
<table name="startlist">
<column name="id">32</column>
<column name="name">G</column>
<column name="surname">DG</column>
<column name="category">MZI</column>
<column name="pb">24</column>
</table>
<table name="startlist">
<column name="id">33</column>
<column name="name">G</column>
<column name="surname">DG</column>
<column name="category">MZI</column>
<column name="pb">24</column>
</table>
<table name="startlist">
<column name="id">34</column>
<column name="name">G</column>
<column name="surname">DG</column>
<column name="category">MZI</column>
<column name="pb">24</column>
</table>
</database>
</pma_xml_export>