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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$0KQzTYyc3xj1nW32ijNHwb9mBmYVPTa57G.LYLW6pW8.F5TRPY9O5','user','ak_8e0a0e6317abb6e9','2023-06-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$zkApe8t4e2ro2rP2YF5bd6egMft5bky/xaNBMQXFUkKsC1G322QV6','user','ak_52873957fd2f27eb','2023-12-28 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$7d7t2JVrL9Ixe0QJlSmKStIZvNBBJUVEXdBjS7NJXktn/wbQzYDIE','user','ak_6d53ecbd7d0b6498','2023-05-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$r.K4ylWmmPTpQV3qtGvniIYASI/DudaRzUqk2KKMb.aprcj5FuhlX','user','ak_6e5adf615000e371','2023-02-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$oW4A/Qx.v8Cd6PwVlHX1uByJz9oo.oeTAfndU8fnayGo7aeLftX1G','user','ak_91afddb394eaaec9','2023-07-20 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$ZERdaRbXPpai7UGO91yEX9UaTwmroHl/kbkzrKQH2dgMC5JY3WySw','user','ak_d4841c44972471e2','2023-07-25 10:05: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=15931;

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


