`accounts` (
`aid` int(11) NOT NULL AUTO_INCREMENT,
`cid` int(11) NOT NULL,
`mout` int(11) DEFAULT NULL,
`min` int(11) DEFAULT NULL,
`bal` int(11) NOT NULL,
`dateFrom` date NOT NULL,
`dateTo` date DEFAULT NULL,
PRIMARY KEY (`aid`)
)
`balance` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cid` int(11) NOT NULL,
`total` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`cid`)
)
`customer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fname` varchar(200) NOT NULL,
`lname` varchar(200) NOT NULL,
`tel` varchar(20) NOT NULL,
`Address` text NOT NULL,
`Limiter` int(11) NOT NULL,
`status` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
)
|