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


--
-- 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=16247;

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


--
-- 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=40870;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$xCJdFEXHpfeotLL.8JMaRzDtyvbW.nD7o/sSJNSjBVYsqPqlJkECB','admin','ak_b2721aac215aa566','2023-02-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$kFYUy3vzVlA737T8P6ENorbCePFN3fXN/WxdZhZNnYB.LYp.F3PJU','admin','ak_65cdbb4c5bd6beda','2023-08-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$3K7zDOHKsCNj.kEWp5PX7G6SjrlBA5a4E1eiajlwnbeilSy23h1mr','user','ak_772599305c2dfd68','2023-06-14 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$CTHrK/S9CaK.XtmHefcPE/JFiRxsdf.sy.zezXAiLu0C3WkolZ8SY','user','ak_f896504424dc74e9','2023-08-03 10:15:00',NULL);

