-- Host: db-master-0.internal    Database: analytics


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$0PWkUvasGHt1IHLVNo8Y0QTIjNzHtwLW6IkX5gVV0ndXG.dXywN4I','user','ak_6d6cffa73036ae07','2023-09-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$RJ4RPBZHw5Ms3C.HQG17kXUG0lo9O4iRh/qNgSHeQLFvBrtSem.ty','admin','ak_f2d29245c3d15022','2023-06-18 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$og6LYbW/dc09/88wPR60c.qgi./5UvYTJ6hX.dzf/eEoVvlKgQNNd','admin','ak_f68df92d610d5565','2023-08-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$m/iUJJ7kAd.bHNFIzjssnKT/owO3/1MwshZSnYT0whweJ8bleXjwU','user','ak_da2b85c8be3c626e','2023-06-09 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$9/KoLLyBo.yxI3HPyp/WBrzI17TrASnk9zwKo10Isj.k2PKdoockL','user','ak_46357ffc80d07412','2023-12-11 10:05:00',NULL);

