Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

26 lignes
897 B

  1. CREATE TABLE IF NOT EXISTS `virtual_domains` (
  2. `id` int(11) NOT NULL auto_increment,
  3. `name` varchar(50) NOT NULL,
  4. PRIMARY KEY (`id`)
  5. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  6. CREATE TABLE IF NOT EXISTS `virtual_users` (
  7. `id` int(11) NOT NULL auto_increment,
  8. `domain_id` int(11) NOT NULL,
  9. `password` varchar(150) NOT NULL,
  10. `email` varchar(100) NOT NULL,
  11. `quota` int(11) NOT NULL DEFAULT 0,
  12. PRIMARY KEY (`id`),
  13. UNIQUE KEY `email` (`email`),
  14. FOREIGN KEY (domain_id) REFERENCES virtual_domains(id) ON DELETE CASCADE
  15. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  16. CREATE TABLE IF NOT EXISTS `virtual_aliases` (
  17. `id` int(11) NOT NULL auto_increment,
  18. `domain_id` int(11) NOT NULL,
  19. `source` varchar(100) NOT NULL,
  20. `destination` varchar(100) NOT NULL,
  21. PRIMARY KEY (`id`),
  22. FOREIGN KEY (domain_id) REFERENCES virtual_domains(id) ON DELETE CASCADE
  23. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;