Skip to content

Commit dbff460

Browse files
EricEric
authored andcommitted
initial commit
0 parents  commit dbff460

File tree

2,528 files changed

+523971
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,528 files changed

+523971
-0
lines changed

License.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
License
2+
3+
The project is released under GNU GPL v3. Source Code can be found at http://code.google.com/p/ixpense/
4+
5+
Note: This resource has been created by Ananda Prakash Verma (http://www.apverma.com)
6+
7+
TERMS OF USE:
8+
9+
You may freely download, play, redistribute and use it into your software project/college project or you can extend it without removing credits of the original authors.
10+
11+
If you use/modify the resources in your projects please linkback to the resource page (https://ixpense.apverma.com). (Please don�t link directly to the .zip files, please link to the resource page.)
12+
13+
If you should have any questions please contact me here: http://www.apverma.com, alternatively you can mail me at: apverma[at]apverma.com

SQL Schema.txt

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
2+
--
3+
-- Database: `ixpense`
4+
--
5+
CREATE DATABASE `ixpense` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
6+
USE `ixpense`;
7+
8+
-- --------------------------------------------------------
9+
10+
--
11+
-- Table structure for table `dashboard_page`
12+
--
13+
14+
CREATE TABLE `dashboard_page` (
15+
`id` bigint(20) NOT NULL auto_increment,
16+
`user_id` bigint(20) default NULL,
17+
`title` varchar(50) default NULL,
18+
PRIMARY KEY (`id`)
19+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;
20+
21+
-- --------------------------------------------------------
22+
23+
--
24+
-- Table structure for table `deposit`
25+
--
26+
27+
CREATE TABLE `deposit` (
28+
`depid` bigint(20) NOT NULL auto_increment,
29+
`uid` bigint(20) NOT NULL,
30+
`date` date NOT NULL,
31+
`time` time NOT NULL,
32+
`deposit_place` varchar(256) default NULL,
33+
`deposit_type` varchar(30) NOT NULL,
34+
`amount` decimal(19,2) NOT NULL,
35+
`note` text,
36+
PRIMARY KEY (`depid`),
37+
KEY `deposit_type` (`deposit_type`),
38+
KEY `uid` (`uid`)
39+
) ENGINE=MyISAM AUTO_INCREMENT=218 DEFAULT CHARSET=latin1;
40+
41+
-- --------------------------------------------------------
42+
43+
--
44+
-- Table structure for table `deposit_type`
45+
--
46+
47+
CREATE TABLE `deposit_type` (
48+
`deptypID` int(11) NOT NULL auto_increment,
49+
`deptypname` varchar(30) NOT NULL,
50+
PRIMARY KEY (`deptypID`)
51+
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
52+
53+
-- --------------------------------------------------------
54+
55+
--
56+
-- Table structure for table `expense`
57+
--
58+
59+
CREATE TABLE `expense` (
60+
`expid` bigint(20) NOT NULL auto_increment,
61+
`uid` bigint(20) NOT NULL,
62+
`date` date NOT NULL,
63+
`time` time NOT NULL,
64+
`expense_place` varchar(256) default NULL,
65+
`expense_category` varchar(30) NOT NULL,
66+
`expense_name` varchar(40) NOT NULL,
67+
`expense_mode` varchar(20) default NULL,
68+
`amount` decimal(19,2) NOT NULL,
69+
`note` text,
70+
PRIMARY KEY (`expid`),
71+
KEY `expense_category` (`expense_category`),
72+
KEY `uid` (`uid`)
73+
) ENGINE=MyISAM AUTO_INCREMENT=398 DEFAULT CHARSET=latin1;
74+
75+
-- --------------------------------------------------------
76+
77+
--
78+
-- Table structure for table `expense_category`
79+
--
80+
81+
CREATE TABLE `expense_category` (
82+
`expcatID` int(11) NOT NULL auto_increment,
83+
`expcatname` varchar(60) NOT NULL,
84+
PRIMARY KEY (`expcatID`)
85+
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
86+
87+
-- --------------------------------------------------------
88+
89+
--
90+
-- Table structure for table `expense_mode`
91+
--
92+
93+
CREATE TABLE `expense_mode` (
94+
`expmodeID` bigint(20) NOT NULL auto_increment,
95+
`mode_name` varchar(20) NOT NULL,
96+
PRIMARY KEY (`expmodeID`)
97+
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
98+
99+
-- --------------------------------------------------------
100+
101+
--
102+
-- Table structure for table `user`
103+
--
104+
105+
CREATE TABLE `user` (
106+
`uid` bigint(20) NOT NULL auto_increment,
107+
`username` varchar(20) NOT NULL,
108+
`password` varchar(32) NOT NULL,
109+
`email` varchar(100) NOT NULL,
110+
`phone` varchar(20) default NULL,
111+
`usercurrency` varchar(3) NOT NULL,
112+
`reg_time` timestamp NOT NULL default CURRENT_TIMESTAMP,
113+
`last_login_time` datetime default NULL,
114+
`last_login_ip` varchar(20) default NULL,
115+
PRIMARY KEY (`uid`),
116+
UNIQUE KEY `email` (`email`),
117+
UNIQUE KEY `username` (`username`)
118+
) ENGINE=MyISAM AUTO_INCREMENT=125 DEFAULT CHARSET=latin1;
119+
120+
-- --------------------------------------------------------
121+
122+
--
123+
-- Table structure for table `user_balance`
124+
--
125+
126+
CREATE TABLE `user_balance` (
127+
`uid` bigint(20) NOT NULL,
128+
`balance` decimal(19,2) NOT NULL,
129+
PRIMARY KEY (`uid`)
130+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
131+
132+
-- --------------------------------------------------------
133+
134+
--
135+
-- Table structure for table `user_ip`
136+
--
137+
138+
CREATE TABLE `user_ip` (
139+
`ipid` bigint(20) NOT NULL auto_increment,
140+
`ip_address` varchar(20) default NULL,
141+
`uid` bigint(20) NOT NULL,
142+
`login_time` datetime default NULL,
143+
`logout_time` datetime default NULL,
144+
PRIMARY KEY (`ipid`),
145+
KEY `ip_address` (`ip_address`),
146+
KEY `user_ipfk_1` (`uid`)
147+
) ENGINE=MyISAM AUTO_INCREMENT=460 DEFAULT CHARSET=latin1;

0 commit comments

Comments
 (0)