-- Host: db-master-7.internal    Database: analytics


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=17248;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$76Cy.HefnsQAZihBh7wDphOJ2IGDR.lzj2/tp3C6P9x.z9eBBTwZE','user','ak_196eb80d181722c0','2023-03-22 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$EnbNUZbygJkGOfJxoqWcLX8/t2MBZM8En6RJiZhxJOID2k/oG3rMr','user','ak_c662887e6ac6f6d4','2023-12-04 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$pG9pPtst6r.gPRNhr57hmlKvtr1fy.p.RWuOyHkBrSOj7GXX.vYJk','user','ak_10cd5847227fae0c','2023-04-22 10:14:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=48672;

--
-- Dumping data for table `sessions`
--


