-- Host: db-master-1.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=14759;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Fm3PwewyPR3WyUoYmwzwPNn.fVsIYpAHHZGLg4wP9kkmwo9pE1R7x','user','ak_70a12b1f853b333d','2023-07-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$ZF.1gxDdsCfSI8W4GCPifAlAdUQ2ThoQ2TR3y8Q96ADUGkbn01o40','user','ak_b436ce09f49c3840','2023-11-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$RvTGuQgF8.lL6X5M35CqoNRDkCup32QEIvu2o08bfX7GnbYzuQsIj','user','ak_7100b4184c856ebe','2023-06-05 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$MuwN4ha9InBdE12Yox5BXxne9y4prbJAoG7trl8DjY3kdFyosISpn','admin','ak_4c6c9ae96a8d02f6','2023-11-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$na6nJuKpK0R/66CSMOjKJMoS/tTmO7LirERtjK1ISerQN75rIFKY/','admin','ak_357e184168034020','2023-05-10 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$6YMM1CbAbCFWIpJ2p2ifa.tZF.okx79OINCKjIgDPG91Fd2dOqPMD','admin','ak_af0af2bc937a41d8','2023-04-21 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=46764;

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


