 CREATE TABLE `utilities` (
   `UtilityID` int(11) NOT NULL,
   `AccountID` int(11) NOT NULL,
-  `Utility` varchar(30) DEFAULT NULL,
-  `Value` varchar(30) DEFAULT NULL,
-  `BillingCycle` varchar(30) DEFAULT NULL,
-  `DateAdded` varchar(30) DEFAULT NULL
+  `Utility` varchar(30) NOT NULL,
+  `Value` varchar(30) NOT NULL,
+  `BillingCycle` varchar(30) NOT NULL,
+  `DateAdded` varchar(30) NOT NULL
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
 --

-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
  MODIFY `ExpenseID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `utilities`
--
ALTER TABLE `utilities`
  MODIFY `UtilityID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- Constraints for dumped tables
--

--
-- Constraints for table `expenses`
--
ALTER TABLE `expenses`
  ADD CONSTRAINT `FK_Expenses_Accounts` FOREIGN KEY (`AccountID`) REFERENCES `accounts` (`AccountID`);

--
-- Constraints for table `utilities`
--
ALTER TABLE `utilities`
  ADD CONSTRAINT `FK_Utility_Accounts` FOREIGN KEY (`AccountID`) REFERENCES `accounts` (`AccountID`);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 21, 2017 at 10:23 PM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 5.6.28

