-
Notifications
You must be signed in to change notification settings - Fork 0
/
beit_invest.sql
196 lines (161 loc) · 5.25 KB
/
beit_invest.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 29, 2019 at 01:21 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;
--
-- Database: `beit invest`
--
CREATE DATABASE IF NOT EXISTS `beit invest` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `beit invest`;
-- --------------------------------------------------------
--
-- Table structure for table `adminuser`
--
DROP TABLE IF EXISTS `adminuser`;
CREATE TABLE IF NOT EXISTS `adminuser` (
`UID` text NOT NULL,
`Name` text NOT NULL,
`Surname` text NOT NULL,
`Username` text NOT NULL,
`Clearance` text NOT NULL,
`RegDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `deposits`
--
DROP TABLE IF EXISTS `deposits`;
CREATE TABLE IF NOT EXISTS `deposits` (
`AUID` text NOT NULL,
`TXID` text NOT NULL,
`TxDate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`AmountReceived` text NOT NULL,
`SenderAddress` text NOT NULL,
`Currency` text NOT NULL,
`ExchangeRate` text NOT NULL,
`Status` text NOT NULL,
`LoggedBy` text NOT NULL,
`ConfirmedBy` text NOT NULL,
`ConfirmDate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `kyc_aml`
--
DROP TABLE IF EXISTS `kyc_aml`;
CREATE TABLE IF NOT EXISTS `kyc_aml` (
`AUID` text NOT NULL,
`NAME` text NOT NULL,
`SURNAME` text NOT NULL,
`ID_PASSPORT` text NOT NULL,
`ID_FRONT` text,
`ID_BACK` text,
`BANK_NAME` text,
`BANK_BRANCH` text,
`ACCOUNT_NO` text,
`ACCOUNT_HOLDER` text,
`BANK_CARD_IMG` text,
`KYC_STATUS` text NOT NULL,
`COMMENT` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `passwords`
--
DROP TABLE IF EXISTS `passwords`;
CREATE TABLE IF NOT EXISTS `passwords` (
`GUID` text NOT NULL,
`Password` text NOT NULL,
`passwordHold` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `session`
--
DROP TABLE IF EXISTS `session`;
CREATE TABLE IF NOT EXISTS `session` (
`AUID` int(11) NOT NULL,
`endTime` text NOT NULL,
`startTime` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`Name` text NOT NULL,
`Surname` text NOT NULL,
`Username` text NOT NULL,
`Email` text NOT NULL,
`GUID` text NOT NULL,
`VerifyEmail` text NOT NULL,
`VerifyKyc` text NOT NULL,
`RegDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `verify`
--
DROP TABLE IF EXISTS `verify`;
CREATE TABLE IF NOT EXISTS `verify` (
`UID` text NOT NULL,
`VerificationCode` text NOT NULL,
`VerifyType` text NOT NULL,
`DateModified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `victa`
--
DROP TABLE IF EXISTS `victa`;
CREATE TABLE IF NOT EXISTS `victa` (
`AUID` text NOT NULL,
`TXID` text NOT NULL,
`TxDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`VictaCode` text NOT NULL,
`VictaPrice` text NOT NULL,
`Quantity` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `wallets`
--
DROP TABLE IF EXISTS `wallets`;
CREATE TABLE IF NOT EXISTS `wallets` (
`AUID` text NOT NULL,
`WalletType` text,
`WalletAddress` text NOT NULL,
`ModifyDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`WalletGUID` text
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `withdrawals`
--
DROP TABLE IF EXISTS `withdrawals`;
CREATE TABLE IF NOT EXISTS `withdrawals` (
`AUID` text NOT NULL,
`TXID` text NOT NULL,
`TxDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`AmountSent` float NOT NULL,
`ReceiverAddress` text NOT NULL,
`Currency` text NOT NULL,
`ExchangeRate` text NOT NULL,
`ConfirmedBy` text NOT NULL,
`ConfirmDate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`Status` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!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 */;