-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExpense_manager.sql
More file actions
145 lines (121 loc) · 4.25 KB
/
Expense_manager.sql
File metadata and controls
145 lines (121 loc) · 4.25 KB
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
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Aug 05, 2019 at 04:19 PM
-- Server version: 5.7.26-0ubuntu0.18.04.1
-- PHP Version: 7.2.19-0ubuntu0.18.04.1
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: `Expense_manager`
--
-- --------------------------------------------------------
--
-- Table structure for table `expense`
--
CREATE TABLE `expense` (
`id` int(10) NOT NULL,
`type` varchar(20) NOT NULL,
`amount` int(11) NOT NULL,
`date` date NOT NULL,
`description` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `expense`
--
INSERT INTO `expense` (`id`, `type`, `amount`, `date`, `description`) VALUES
(2017135040, 'education', 25000, '2019-04-13', 'education'),
(2017135040, 'education', 25000, '2018-10-10', ''),
(2017135040, 'Investment', 69, '2019-04-08', '69'),
(2017135040, 'Investment', 20000, '2019-04-01', 'testing'),
(2017135040, 'education', 1000, '2019-04-09', ' '),
(2017135040, 'education', 1000, '2019-04-16', ' '),
(2017135040, 'education', 3000, '2019-02-14', ' '),
(2017135040, 'Investment', 1000, '2019-04-01', ' '),
(2017135040, 'food', 1000, '2019-04-01', 'qwerty'),
(2017135040, 'food', 1000, '2019-04-01', ' '),
(2017135040, 'food', 1000, '2019-04-01', ' '),
(2017135040, 'food', 1000, '2019-04-01', ' '),
(2017135040, 'food', 1000, '2019-04-16', ' '),
(2017135040, 'food', 1000, '2019-04-16', ' '),
(2017135040, 'food', 69, '2019-04-01', 'showing winston'),
(2017135040, 'food', 21, '2019-04-18', ' '),
(2017135040, 'food', 32, '2019-04-18', ' '),
(2017135040, 'food', 123, '2019-04-18', ' '),
(2017135040, 'education', 0, '2019-04-18', ' '),
(2017135040, 'Investment', 25000, '2019-04-17', 'investment into shares'),
(2017135040, 'Travel', 100, '2019-08-05', 'travel');
-- --------------------------------------------------------
--
-- Table structure for table `income`
--
CREATE TABLE `income` (
`id` int(10) NOT NULL,
`type` varchar(20) NOT NULL,
`amount` int(11) NOT NULL,
`date` date NOT NULL,
`description` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `income`
--
INSERT INTO `income` (`id`, `type`, `amount`, `date`, `description`) VALUES
(2017135040, 'Job', 20000, '2019-04-01', 'got salary for 3rd month'),
(2017135040, 'Business', 1000, '2019-01-26', 'from dairy'),
(2017135040, 'Business', 123, '2019-04-08', ' '),
(2017135040, 'Business', 4500, '2019-04-08', ' '),
(2017135040, 'Business', 2500, '2019-04-08', 'hello'),
(2017135040, 'Job', 123, '2019-04-08', 'testing'),
(2017135040, 'Business', 77, '2019-04-01', 'refresh wala'),
(2017135040, 'Job', 69, '2019-04-02', 'addgh'),
(2017135040, 'Business', 69, '2017-04-01', ' '),
(2017135040, 'Business', 1, '2019-04-01', ' '),
(2017135040, 'Job', 1200, '2019-04-02', 'salary of apil'),
(2017135040, 'Business', 1234, '2019-05-01', 'showing to rushi'),
(2017135040, 'Business', 1230, '2019-05-27', ' '),
(2017135040, 'Job', 8, '2019-08-06', 'checking'),
(2017135040, 'Job', 1600, '2019-08-05', ' '),
(2017135040, 'Job', 2000, '2019-08-05', ' '),
(2017135040, 'Job', 5000, '2019-08-05', ' ');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(10) NOT NULL,
`name` varchar(25) NOT NULL,
`password` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `name`, `password`) VALUES
(2017134979, 'saurabh yadav', 'qwerty'),
(2017135040, 'viraj', 'asdfg');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `expense`
--
ALTER TABLE `expense`
ADD KEY `id` (`id`);
--
-- Indexes for table `income`
--
ALTER TABLE `income`
ADD KEY `id` (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
/*!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 */;