schema.sql 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.3.2deb1
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Oct 06, 2010 at 10:30 PM
  7. -- Server version: 5.1.41
  8. -- PHP Version: 5.3.2-1ubuntu4.2
  9. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  10. --
  11. -- Database: `fufl`
  12. --
  13. -- --------------------------------------------------------
  14. --
  15. -- Table structure for table `polls`
  16. --
  17. CREATE TABLE IF NOT EXISTS `polls` (
  18. `id` int(11) NOT NULL AUTO_INCREMENT,
  19. `title` varchar(32) NOT NULL,
  20. `description` varchar(1024) NOT NULL,
  21. `name` varchar(32) NOT NULL,
  22. `owner_id` int(11) NOT NULL,
  23. PRIMARY KEY (`id`),
  24. KEY `owner_id` (`owner_id`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  26. -- --------------------------------------------------------
  27. --
  28. -- Table structure for table `poll_options`
  29. --
  30. CREATE TABLE IF NOT EXISTS `poll_options` (
  31. `poll_id` int(11) NOT NULL,
  32. `choice` varchar(32) NOT NULL,
  33. `value` bigint(20) NOT NULL,
  34. KEY `poll_id` (`poll_id`)
  35. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  36. -- --------------------------------------------------------
  37. --
  38. -- Table structure for table `results`
  39. --
  40. CREATE TABLE IF NOT EXISTS `results` (
  41. `poll_id` int(11) NOT NULL,
  42. `name` varchar(32) NOT NULL,
  43. `choice` bigint(20) NOT NULL,
  44. KEY `poll_id` (`poll_id`)
  45. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  46. -- --------------------------------------------------------
  47. --
  48. -- Table structure for table `users`
  49. --
  50. CREATE TABLE IF NOT EXISTS `users` (
  51. `id` int(11) NOT NULL AUTO_INCREMENT,
  52. `username` varchar(32) NOT NULL,
  53. `password` varchar(32) NOT NULL,
  54. `email` varchar(320) NOT NULL,
  55. PRIMARY KEY (`id`)
  56. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;