-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathautorx.sql
124 lines (107 loc) · 3.03 KB
/
autorx.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
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Gegenereerd op: 09 jun 2019 om 00:33
-- Serverversie: 5.5.62
-- PHP-versie: 7.3.6
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 */;
--
-- Database: `autorx`
--
CREATE DATABASE IF NOT EXISTS `autorx` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `autorx`;
-- --------------------------------------------------------
--
-- Tabelstructuur voor tabel `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 NOT NULL,
`lon` float 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;
-- --------------------------------------------------------
--
-- Tabelstructuur voor tabel `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 NOT NULL,
`lon` float 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;
--
-- Indexen voor geëxporteerde tabellen
--
--
-- Indexen voor tabel `first_seen`
--
ALTER TABLE `first_seen`
ADD PRIMARY KEY (`id`);
--
-- Indexen voor tabel `sondedata`
--
ALTER TABLE `sondedata`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT voor geëxporteerde tabellen
--
--
-- AUTO_INCREMENT voor een tabel `first_seen`
--
ALTER TABLE `first_seen`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT voor een tabel `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 */;