-- Host: db-master-4.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=45636;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$ymW02EM1HcFl4KPZ/WbAxCKqG8HotO5lK5hCjiW.yLy9cs/tyqkwT','user','ak_03237ed88917dfcd','2023-12-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$mcQo.V3ittZOjcAXtJTgvo4.Zyn7osw5ymSztI6Pa.WjpD2MQOsz7','admin','ak_d4ea58e421a19654','2023-06-20 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$EXiO1DLHvWYYXh3p5Xj0rGQUSdLVeqW17fip8yYzzhg9qa4dhmF.n','user','ak_db06d96f5762b65a','2023-07-06 10:21:00',NULL);

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

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


