-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaliwa_server.sql
125 lines (103 loc) · 3.15 KB
/
aliwa_server.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
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Erstellungszeit: 09. Mrz 2021 um 11:11
-- Server-Version: 10.3.25-MariaDB-0ubuntu0.20.04.1
-- PHP-Version: 7.4.3
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 */;
--
-- Datenbank: `alias_light_pub_chain`
--
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `blocks`
--
CREATE TABLE `blocks` (
`blockheight` int(10) UNSIGNED NOT NULL,
`blockhash` char(64) NOT NULL,
`prev_blockhash` char(64) NOT NULL,
`next_blockhash` char(64) NOT NULL,
`time` bigint(20) NOT NULL,
`num_transactions` int(11) UNSIGNED NOT NULL,
`difficulty` double NOT NULL,
`flags` char(60) NOT NULL,
`coins_created` decimal(18,8) NOT NULL,
`outstanding` decimal(18,8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `rewinds`
--
CREATE TABLE `rewinds` (
`time` bigint(20) NOT NULL,
`block_height` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `tx_inputs`
--
CREATE TABLE `tx_inputs` (
`tx` char(64) NOT NULL,
`in_index` int(11) UNSIGNED NOT NULL,
`from_tx` char(64) NOT NULL,
`from_vout` int(10) UNSIGNED NOT NULL,
`create_height` int(10) UNSIGNED NOT NULL,
`time` bigint(20) NOT NULL,
`blockhash` char(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `tx_outputs`
--
CREATE TABLE `tx_outputs` (
`tx` char(64) NOT NULL,
`num` int(11) UNSIGNED NOT NULL,
`value` decimal(18,8) UNSIGNED NOT NULL,
`scriptPubKey` char(70) NOT NULL,
`to_address` char(34) NOT NULL,
`create_height` int(11) UNSIGNED NOT NULL,
`time` bigint(20) NOT NULL,
`mature` int(10) UNSIGNED NOT NULL COMMENT '6 for public / 450 for staking',
`blockhash` char(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indizes der exportierten Tabellen
--
--
-- Indizes für die Tabelle `blocks`
--
ALTER TABLE `blocks`
ADD PRIMARY KEY (`blockheight`),
ADD UNIQUE KEY `blockhash` (`blockhash`);
--
-- Indizes für die Tabelle `rewinds`
--
ALTER TABLE `rewinds`
ADD PRIMARY KEY (`time`);
--
-- Indizes für die Tabelle `tx_inputs`
--
ALTER TABLE `tx_inputs`
ADD PRIMARY KEY (`tx`,`in_index`),
ADD KEY `create_height` (`create_height`),
ADD KEY `from_tx` (`from_tx`);
--
-- Indizes für die Tabelle `tx_outputs`
--
ALTER TABLE `tx_outputs`
ADD PRIMARY KEY (`tx`,`num`),
ADD KEY `address` (`to_address`),
ADD KEY `height_created` (`create_height`);
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 */;