forked from smoqadam/UrlShortener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
url_shortener.sql
48 lines (38 loc) · 1.39 KB
/
url_shortener.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 03, 2013 at 09:19 È.Ù
-- Server version: 5.1.41
-- PHP Version: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `url_shortener`
--
-- --------------------------------------------------------
--
-- Table structure for table `urls`
--
CREATE TABLE IF NOT EXISTS `urls` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(500) NOT NULL,
`short_code` varchar(15) NOT NULL,
`create_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`visits` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- Dumping data for table `urls`
--
INSERT INTO `urls` (`id`, `url`, `short_code`, `create_time`, `visits`) VALUES
(1, 'http://phpro.ir', 'L2TQ9QB', '2013-03-01 00:00:00', 6),
(6, 'http://iphotoshop.ir', 'sZ4Fzxf', '2013-03-01 00:00:00', 3),
(8, 'http://google.com', 'PpLPH96', '2013-03-01 00:00:00', 1);
/*!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 */;