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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$RM3/ejMRPQ8vjsKSAN1Ub/Ac48lMbGQwaBPhmjDpHQstfV/mBKEP6','user','ak_bac4b5912eb12fc9','2023-09-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$dJ.jnepjPo65y5qU12wG5MYz2KF0FTco1NzPAf6AFBhrnjz7eiZxe','user','ak_7f6cd88c280f17e6','2023-05-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$W9snSXZN2bU0y2yMB2dME1uIAesZs.q6FsShfKBORi0dgeAi5I1pE','user','ak_5fb7eeeae0d1c90c','2023-07-06 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$BukxxxBXZNdtxTfjHaLZl6Pq142PVUjGCTGvwksXhBJ0QK.s4u7wX','user','ak_e2e3edb36ce3b9f7','2023-09-25 10:04: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=12211;

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


