-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoline.sql
119 lines (97 loc) · 2.83 KB
/
doline.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
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 13, 2016 at 03:15 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.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 utf8mb4 */;
--
-- Database: `doline`
--
-- --------------------------------------------------------
--
-- Table structure for table `mutasi`
--
CREATE TABLE `mutasi` (
`id` int(10) NOT NULL,
`tanggalTransaksi` datetime NOT NULL,
`fromUser` int(10) NOT NULL,
`toUser` int(10) NOT NULL,
`debit` int(10) NOT NULL,
`kredit` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`ID` int(10) NOT NULL,
`Nama` varchar(32) NOT NULL,
`Email` varchar(32) NOT NULL,
`KTP` varchar(16) NOT NULL,
`Alamat` text NOT NULL,
`Username` varchar(32) NOT NULL,
`Password` varchar(32) NOT NULL,
`Saldo` double NOT NULL,
`Blocked` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`ID`, `Nama`, `Email`, `KTP`, `Alamat`, `Username`, `Password`, `Saldo`, `Blocked`) VALUES
(1, 'M Ardi Firmansyah', '[email protected]', '1301144317', 'Pondok Arjuna 2 Sukabirus', 'ardifirmansyah', 'ardi3008', 7, 0),
(2, 'ardi', '[email protected]', '1301144317', 'sukabirus', 'ardi3008', 'firmansyah', 12000, 0),
(3, 'test', '[email protected]', '12345', 'telkom', 'test', 'test', 10000, 0);
-- --------------------------------------------------------
--
-- Table structure for table `voucher`
--
CREATE TABLE `voucher` (
`kode` varchar(10) NOT NULL,
`nominal` int(10) NOT NULL,
`used` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `voucher`
--
INSERT INTO `voucher` (`kode`, `nominal`, `used`) VALUES
('dua', 2, 0),
('duabelas', 12000, 1),
('satu', 1, 1),
('satuu', 11, 0),
('satuuu', 111, 0),
('tes', 0, 0),
('test', 10000, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`ID`),
ADD UNIQUE KEY `ID` (`ID`);
--
-- Indexes for table `voucher`
--
ALTER TABLE `voucher`
ADD PRIMARY KEY (`kode`),
ADD UNIQUE KEY `kode` (`kode`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
/*!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 */;