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

--
-- Table structure for table `active_days`
--

DROP TABLE IF EXISTS `active_days`;
CREATE TABLE IF NOT EXISTS `active_days` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `period_id` int(11) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `last_use` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `period_id_in_active_days` (`period_id`)
) ENGINE=InnoDB AUTO_INCREMENT=18931 DEFAULT CHARSET=utf8;

--
-- RELATIONS FOR TABLE `active_days`:
--   `period_id`
--       `periods` -> `id`
--
