Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 4.1.6
- -- http://www.phpmyadmin.net
- --
- -- Host: localhost
- -- Generation Time: Apr 12, 2014 at 01:48 PM
- -- Server version: 5.5.35-0ubuntu0.13.10.2
- -- PHP Version: 5.5.3-1ubuntu2.2
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET time_zone = "+00:00";
- --
- -- Database: `artmyearth`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `albumPhotos`
- --
- CREATE TABLE IF NOT EXISTS `albumPhotos` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `user_id` INT(10) UNSIGNED NOT NULL,
- `album_id` INT(10) UNSIGNED NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `albums`
- --
- CREATE TABLE IF NOT EXISTS `albums` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `name` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `description` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `user_id` INT(10) UNSIGNED NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `comments`
- --
- CREATE TABLE IF NOT EXISTS `comments` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `name` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `user_id` INT(10) UNSIGNED NOT NULL,
- `photo_id` INT(10) UNSIGNED NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `favourites`
- --
- CREATE TABLE IF NOT EXISTS `favourites` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `user_id` INT(10) UNSIGNED NOT NULL,
- `photos_id` INT(10) UNSIGNED NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `follows`
- --
- CREATE TABLE IF NOT EXISTS `follows` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `follower_id` INT(10) UNSIGNED NOT NULL,
- `follows_id` INT(10) UNSIGNED NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `migrations`
- --
- CREATE TABLE IF NOT EXISTS `migrations` (
- `migration` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `batch` INT(11) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- --
- -- Dumping data for table `migrations`
- --
- INSERT INTO `migrations` (`migration`, `batch`) VALUES
- ('2014_04_12_123633_create_users_table', 1),
- ('2014_04_12_130235_create_photos_table', 1),
- ('2014_04_12_130254_create_albums_table', 1),
- ('2014_04_12_130313_create_tags_table', 1),
- ('2014_04_12_131653_create_comments_table', 1),
- ('2014_04_12_131709_create_tagged_table', 1),
- ('2014_04_12_131746_create_album_photos_table', 1),
- ('2014_04_12_131802_create_favourites_table', 1),
- ('2014_04_12_131813_create_follows_table', 1);
- -- --------------------------------------------------------
- --
- -- Table structure for table `photos`
- --
- CREATE TABLE IF NOT EXISTS `photos` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `url` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `description` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `longLat` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `flickr_id` VARCHAR(15) COLLATE utf8_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `tagged`
- --
- CREATE TABLE IF NOT EXISTS `tagged` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `tag_id` INT(10) UNSIGNED NOT NULL,
- `user_id` INT(10) UNSIGNED NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `tags`
- --
- CREATE TABLE IF NOT EXISTS `tags` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `name` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `users`
- --
- CREATE TABLE IF NOT EXISTS `users` (
- `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `name` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `surname` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `email` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL,
- `password` VARCHAR(100) COLLATE utf8_unicode_ci NOT NULL,
- `admin` tinyint(1) NOT NULL,
- `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement