forked from dterweij/autorx2mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb_autorx2mysql.sql
165 lines (143 loc) · 4.09 KB
/
db_autorx2mysql.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Hostiteľ: 127.0.0.1:3313
-- Čas generovania: So 22.Jún 2019, 19:30
-- Verzia serveru: 10.3.10-MariaDB-1:10.3.10+maria~xenial-log
-- Verzia PHP: 7.2.19-0ubuntu0.18.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Databáza: `db_autorx2mysql`
--
-- --------------------------------------------------------
--
-- Štruktúra tabuľky pre tabuľku `alldata`
--
CREATE TABLE `alldata` (
`id` int(11) NOT NULL,
`last_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`station` varchar(40) NOT NULL,
`callsign` varchar(40) NOT NULL,
`time` varchar(40) NOT NULL,
`alt` float NOT NULL,
`lat` float(8,6) NOT NULL,
`lon` float(8,6) NOT NULL,
`temp` float NOT NULL,
`freq` varchar(40) NOT NULL,
`frame` int(15) NOT NULL,
`sats` int(4) NOT NULL,
`batt` float NOT NULL,
`bt` varchar(40) NOT NULL,
`speed` float NOT NULL,
`model` varchar(40) NOT NULL,
`distance` float NOT NULL,
`direction` varchar(40) NOT NULL,
`comment` varchar(40) NOT NULL,
`evel` float NOT NULL,
`bear` float NOT NULL,
`hum` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Štruktúra tabuľky pre tabuľku `first_seen`
--
CREATE TABLE `first_seen` (
`id` int(11) NOT NULL,
`last_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`station` varchar(40) NOT NULL,
`callsign` varchar(40) NOT NULL,
`time` varchar(40) NOT NULL,
`alt` float NOT NULL,
`lat` float(8,6) NOT NULL,
`lon` float(8,6) NOT NULL,
`temp` float NOT NULL,
`freq` varchar(40) NOT NULL,
`frame` int(15) NOT NULL,
`sats` int(4) NOT NULL,
`batt` float NOT NULL,
`bt` varchar(40) NOT NULL,
`speed` float NOT NULL,
`model` varchar(40) NOT NULL,
`distance` float NOT NULL,
`direction` varchar(40) NOT NULL,
`comment` varchar(40) NOT NULL,
`evel` float NOT NULL,
`bear` float NOT NULL,
`hum` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Štruktúra tabuľky pre tabuľku `sondedata`
--
CREATE TABLE `sondedata` (
`id` int(11) NOT NULL,
`last_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`station` varchar(40) NOT NULL,
`callsign` varchar(40) NOT NULL,
`time` varchar(40) NOT NULL,
`alt` float NOT NULL,
`lat` float(8,6) NOT NULL,
`lon` float(8,6) NOT NULL,
`temp` float NOT NULL,
`freq` varchar(40) NOT NULL,
`frame` int(15) NOT NULL,
`sats` int(4) NOT NULL,
`batt` float NOT NULL,
`bt` varchar(40) NOT NULL,
`speed` float NOT NULL,
`model` varchar(40) NOT NULL,
`distance` float NOT NULL,
`direction` varchar(40) NOT NULL,
`comment` varchar(40) NOT NULL,
`evel` float NOT NULL,
`bear` float NOT NULL,
`hum` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Kľúče pre exportované tabuľky
--
--
-- Indexy pre tabuľku `alldata`
--
ALTER TABLE `alldata`
ADD PRIMARY KEY (`id`);
--
-- Indexy pre tabuľku `first_seen`
--
ALTER TABLE `first_seen`
ADD PRIMARY KEY (`id`);
--
-- Indexy pre tabuľku `sondedata`
--
ALTER TABLE `sondedata`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT pre exportované tabuľky
--
--
-- AUTO_INCREMENT pre tabuľku `alldata`
--
ALTER TABLE `alldata`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pre tabuľku `first_seen`
--
ALTER TABLE `first_seen`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pre tabuľku `sondedata`
--
ALTER TABLE `sondedata`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;