-
Notifications
You must be signed in to change notification settings - Fork 11
/
db_template.sql
152 lines (124 loc) · 3.44 KB
/
db_template.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
-- phpMyAdmin SQL Dump
-- version 4.7.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 18, 2017 at 12:35 AM
-- Server version: 5.5.57-cll
-- PHP Version: 5.6.30
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: `iotahr_wallet`
--
-- --------------------------------------------------------
--
-- Table structure for table `nodes`
--
CREATE TABLE `nodes` (
`id` varchar(4) NOT NULL,
`name` varchar(64) NOT NULL,
`url` varchar(128) NOT NULL,
`port` mediumint(6) NOT NULL,
`type` varchar(6) NOT NULL DEFAULT 'http',
`status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `pow_time`
--
CREATE TABLE `pow_time` (
`id` int(11) NOT NULL,
`time` mediumint(8) DEFAULT NULL,
`device` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `system`
--
CREATE TABLE `system` (
`id` smallint(2) NOT NULL,
`recaptcha_sitekey` varchar(128) NOT NULL,
`recaptcha_secretkey` varchar(128) NOT NULL,
`g_analytics` text NOT NULL,
`avg_pow_time` text,
`donation_address` varchar(243) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tickets`
--
CREATE TABLE `tickets` (
`id` varchar(14) NOT NULL,
`sender` text,
`title` varchar(255) NOT NULL,
`message` text NOT NULL,
`user` varchar(8) NOT NULL,
`created` datetime NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` varchar(8) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`seed` varchar(512) NOT NULL,
`hint` varchar(64) DEFAULT '-',
`pin_type` varchar(8) NOT NULL DEFAULT 'simple',
`hash` varchar(128) DEFAULT NULL,
`joined` datetime NOT NULL,
`joined_ip` varchar(16) NOT NULL,
`last_login` datetime NOT NULL,
`last_login_ip` varchar(16) DEFAULT NULL,
`failed_login` smallint(2) NOT NULL DEFAULT '0',
`level` tinyint(1) NOT NULL DEFAULT '3',
`status` tinyint(1) NOT NULL DEFAULT '2'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `nodes`
--
ALTER TABLE `nodes`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pow_time`
--
ALTER TABLE `pow_time`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `system`
--
ALTER TABLE `system`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tickets`
--
ALTER TABLE `tickets`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `pow_time`
--
ALTER TABLE `pow_time`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;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 */;