-- phpMyAdmin SQL Dump
-- version 4.2.12deb2+deb8u1build0.15.04.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 04, 2017 at 03:28 PM
-- Server version: 5.6.28-0ubuntu0.15.04.1
-- PHP Version: 5.6.4-4ubuntu6.4

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!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: `lethbridge`
--

-- --------------------------------------------------------

--
-- Table structure for table `artworks`
--

DROP TABLE IF EXISTS `artworks`;
CREATE TABLE IF NOT EXISTS `artworks` (
`id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL,
  `owner` varchar(255) NOT NULL,
  `artist_id` int(11) NOT NULL,
  `medium` varchar(255) NOT NULL,
  `signed_id` int(11) NOT NULL,
  `notes` text NOT NULL,
  `laybuy` int(11) NOT NULL DEFAULT '0',
  `laybuy-list` varchar(255) NOT NULL,
  `laybuy-price` varchar(255) NOT NULL,
  `buynow` int(11) NOT NULL DEFAULT '0',
  `buynow-list` varchar(255) NOT NULL,
  `buynow-price` varchar(255) NOT NULL,
  `secondary-market` int(11) NOT NULL DEFAULT '0',
  `secondary-market-list` varchar(255) NOT NULL,
  `secondary-market-price` varchar(255) NOT NULL,
  `auction` int(11) NOT NULL DEFAULT '0',
  `auction-list` varchar(255) NOT NULL,
  `auction-price` varchar(255) NOT NULL,
  `email-enquiry` int(11) NOT NULL DEFAULT '0',
  `owner-statement` text NOT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `artwork_display_in_metas`
--

DROP TABLE IF EXISTS `artwork_display_in_metas`;
CREATE TABLE IF NOT EXISTS `artwork_display_in_metas` (
`id` int(11) NOT NULL,
  `artwork_id` int(11) NOT NULL,
  `site_id` int(11) NOT NULL,
  `site` varchar(255) NOT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `artwork_other_services_metas`
--

DROP TABLE IF EXISTS `artwork_other_services_metas`;
CREATE TABLE IF NOT EXISTS `artwork_other_services_metas` (
`id` int(11) NOT NULL,
  `artwork_id` int(11) NOT NULL,
  `service_id` int(11) NOT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `uploads`
--

DROP TABLE IF EXISTS `uploads`;
CREATE TABLE IF NOT EXISTS `uploads` (
`id` int(11) NOT NULL,
  `artwork_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `size` int(11) NOT NULL,
  `type` varchar(255) NOT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `artworks`
--
ALTER TABLE `artworks`
 ADD PRIMARY KEY (`id`);

--
-- Indexes for table `artwork_display_in_metas`
--
ALTER TABLE `artwork_display_in_metas`
 ADD PRIMARY KEY (`id`);

--
-- Indexes for table `artwork_other_services_metas`
--
ALTER TABLE `artwork_other_services_metas`
 ADD PRIMARY KEY (`id`);

--
-- Indexes for table `uploads`
--
ALTER TABLE `uploads`
 ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `artworks`
--
ALTER TABLE `artworks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `artwork_display_in_metas`
--
ALTER TABLE `artwork_display_in_metas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `artwork_other_services_metas`
--
ALTER TABLE `artwork_other_services_metas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `uploads`
--
ALTER TABLE `uploads`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;
