-
Notifications
You must be signed in to change notification settings - Fork 0
/
Database.txt
32 lines (28 loc) · 955 Bytes
/
Database.txt
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
Database Queries
CREATE DATABASE `apartmentbilling` /*!40100 DEFAULT CHARACTER SET utf8 */;
CREATE TABLE `common_expenses` (
`ID` int(11) NOT NULL,
`NAME` varchar(45) NOT NULL,
`AMOUNT` int(11) NOT NULL,
`SPENTBY` varchar(45) NOT NULL,
`ENTEREDDATE` date NOT NULL,
PRIMARY KEY (`ID`),
UNIQUE KEY `ID_UNIQUE` (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `constant_values` (
`ID` int(11) NOT NULL,
`NAME` varchar(45) NOT NULL,
`AMOUNT` varchar(45) NOT NULL,
PRIMARY KEY (`ID`),
UNIQUE KEY `ID_UNIQUE` (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `user` (
`ID` int(11) NOT NULL,
`NAME` varchar(45) NOT NULL,
`EMAIL` varchar(45) NOT NULL,
`PASSWORD` varchar(45) NOT NULL,
PRIMARY KEY (`ID`,`EMAIL`),
UNIQUE KEY `UK_o3uyea7py4jnln0qxrtg1qqhq` (`NAME`),
UNIQUE KEY `ID_UNIQUE` (`ID`),
UNIQUE KEY `EMAIL_UNIQUE` (`EMAIL`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;