-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqr-banking.sql
32 lines (31 loc) · 1.18 KB
/
qr-banking.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
CREATE TABLE IF NOT EXISTS `bank_accounts` (
`record_id` bigint(255) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(250) DEFAULT NULL,
`buisness` varchar(50) DEFAULT NULL,
`buisnessid` int(11) DEFAULT NULL,
`gangid` varchar(50) DEFAULT NULL,
`amount` bigint(255) NOT NULL DEFAULT 0,
`account_type` enum('Current','Savings','Buisness','Gang') NOT NULL DEFAULT 'Current',
PRIMARY KEY (`record_id`),
UNIQUE KEY `citizenid` (`citizenid`),
KEY `buisness` (`buisness`),
KEY `buisnessid` (`buisnessid`),
KEY `gangid` (`gangid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `bank_statements` (
`record_id` bigint(255) NOT NULL AUTO_INCREMENT,
`citizenid` varchar(50) DEFAULT NULL,
`account` varchar(50) DEFAULT NULL,
`buisness` varchar(50) DEFAULT NULL,
`buisnessid` int(11) DEFAULT NULL,
`gangid` varchar(50) DEFAULT NULL,
`deposited` int(11) DEFAULT NULL,
`withdraw` int(11) DEFAULT NULL,
`balance` int(11) DEFAULT NULL,
`date` varchar(50) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`record_id`),
KEY `buisness` (`buisness`),
KEY `buisnessid` (`buisnessid`),
KEY `gangid` (`gangid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;