I am creating a simple customer support tracking system with PHP/MySQL
Fuctions are followings.
An admin can CRUD an customer.
An admin can add points/credits.: 60points (60min) etc
An admin can enter the work details, date, time duration, points and display these and point(time) remaining.
The question is how to structure the tables.
I have the customer table which is the easiest part.
CREATE TABLE IF NOT EXISTS `web_customer` (
`customer_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`password` varchar(50) NOT NULL,
`company_name` varchar(50) NOT NULL,
`customer_name` varchar(150) NOT NULL,
`phone_number` int(10) unsigned NOT NULL,
`email` varchar(50) NOT NULL,
`address` varchar(50) NOT NULL,
`city` varchar(50) NOT NULL,
`post_code` int(10) unsigned NOT NULL,
PRIMARY KEY (`customer_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
I am hoping someone gives me good suggestion or examples or resources.
Thanks in advance.