-- Host: db-master-6.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=20030;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=2533;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$GzQypMN/.x1lyQI0ERCx8WbOZh9XYHZVoxUVSybE8w7NBytyqAOpO','user','ak_485fa98d682e44ea','2023-10-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$5Q33P0D2ZNPaIZBkKKyLZ5bcQvqq.ZZstYBz0ieoRHfTB29uvlDh/','admin','ak_2bd473ccc2d60fbf','2023-11-11 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$HodkQ50sJ9TNtF1fxUv8G0ctIaB3K66w.qzigoEF60D4KNC5Se7S1','user','ak_0da60713f93e9ff7','2023-02-02 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$HxJcnWXzkCB2Zvyfjhn7jawePL5lJsmRcUQj7Q5nUoGle8vSD/AHc','user','ak_a5c037e0be5dd717','2023-04-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$XxJOlpUtI1dkMuTfzwnpql3nJldJFtAr6Z2NbrTMN3Weofcn7UFVo','user','ak_9e4316c7ade8618c','2023-07-17 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$aA7XlFm/3SuRGvvTAflKV3YNy1DOGVhGZc.hn5w2qkkE.52QkGR7Q','admin','ak_62d8291cf8007d3f','2023-03-01 10:11:00',NULL);

