ascott

Table - accounts_groups

Aug 31st, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.11 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.4.10.1deb1
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Aug 31, 2012 at 12:11 AM
  7. -- Server version: 5.5.24
  8. -- PHP Version: 5.3.10-1ubuntu3.2
  9.  
  10. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13.  
  14. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  15. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  16. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  17. /*!40101 SET NAMES utf8 */;
  18.  
  19. --
  20. -- Database: `sf2.template`
  21. --
  22.  
  23. -- --------------------------------------------------------
  24.  
  25. --
  26. -- Table structure for table `accounts_groups`
  27. --
  28.  
  29. CREATE TABLE IF NOT EXISTS `accounts_groups` (
  30.   `id` int(11) NOT NULL AUTO_INCREMENT,
  31.   `configuration_fk` int(11) NOT NULL,
  32.   `account_fk` int(11) NOT NULL,
  33.   `role_fk` varchar(255) NOT NULL DEFAULT 'ROLE_USER_BASIC',
  34.   `create_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  35.   `create_account_fk` int(11) DEFAULT NULL,
  36.   PRIMARY KEY (`id`),
  37.   KEY `configuration_fk` (`configuration_fk`),
  38.   KEY `account_fk` (`account_fk`),
  39.   KEY `create_account_fk` (`create_account_fk`),
  40.   KEY `role_fk` (`role_fk`)
  41. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
  42.  
  43. --
  44. -- Constraints for dumped tables
  45. --
  46.  
  47. --
  48. -- Constraints for table `accounts_groups`
  49. --
  50. ALTER TABLE `accounts_groups`
  51.   ADD CONSTRAINT `accounts_groups_ibfk_7` FOREIGN KEY (`role_fk`) REFERENCES `engine_roles` (`role`) ON DELETE CASCADE ON UPDATE CASCADE,
  52.   ADD CONSTRAINT `accounts_groups_ibfk_3` FOREIGN KEY (`configuration_fk`) REFERENCES `web_configurations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  53.   ADD CONSTRAINT `accounts_groups_ibfk_4` FOREIGN KEY (`account_fk`) REFERENCES `accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  54.   ADD CONSTRAINT `accounts_groups_ibfk_6` FOREIGN KEY (`create_account_fk`) REFERENCES `accounts` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
  55.  
  56. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  57. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  58. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Add Comment
Please, Sign In to add comment