 
 CREATE TABLE `events` (
   `id` int(10) UNSIGNED NOT NULL,
-  `name` varchar(255) NOT NULL,
+  `title` varchar(255) NOT NULL,
   `description` varchar(255) NOT NULL,
   `category_id` tinyint(3) UNSIGNED NOT NULL,
-  `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
-  `ending` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+  `date_start` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+  `date_end` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
   `place_id` int(10) UNSIGNED NOT NULL,
   `company_id` int(10) UNSIGNED NOT NULL
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 13, 2017 at 04:03 AM
-- Server version: 5.7.14
-- PHP Version: 5.6.25



CREATE TABLE `pictures` (
  `event_id` int(10) UNSIGNED NOT NULL,
  `picture_url` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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