db-schema.sql 863 B

123456789101112131415161718192021222324252627282930313233
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.4.10.1deb1
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Jan 24, 2015 at 05:32 PM
  7. -- Server version: 5.5.40
  8. -- PHP Version: 5.4.36-1+deb.sury.org~precise+2
  9. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  10. SET time_zone = "+00:00";
  11. --
  12. -- Database: `go_kurz`
  13. --
  14. -- --------------------------------------------------------
  15. --
  16. -- Table structure for table `shorturl`
  17. --
  18. CREATE TABLE IF NOT EXISTS `shorturl` (
  19. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  20. `url` varchar(32) NOT NULL COMMENT 'The short URL itself',
  21. `domain` int(11) NOT NULL,
  22. `strategy` varchar(8) NOT NULL DEFAULT 'base',
  23. `submittedBy` int(11) NOT NULL,
  24. `submittedInfo` int(11) NOT NULL,
  25. `isEnabled` tinyint(1) NOT NULL,
  26. PRIMARY KEY (`id`),
  27. UNIQUE KEY `url` (`url`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;