-- Host: db-master-8.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=37588;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$B3IXJkkD2qeor2t9WeRyCKNYHNlTpmTnWG/12pcDU7r9ukTcS2NjH','admin','ak_ea58e4dd3235407b','2023-04-22 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$blxw/IlTu/43TX8z1rEzCTacOYhw.jE7GWwEQ4Cwm8En1kRrFFWEC','admin','ak_07b62eb7dfc0a700','2023-02-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Pt9DyhSFAacKAx24Hed7vQ0MNxs5fyQcRjBy1KR9MlSjF2.6SynTR','user','ak_9cc5751849334fa0','2023-11-08 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$srGVuXsZrKwD3vofRb//FdNciwWVrssNdUjhp/9xWoX7adQcrawcL','user','ak_b00b5052d361b882','2023-11-26 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$KDG16ryynNYGSyL39iCgt4EQF26DeYdd0KF895tNghEJgnUOAsi7M','user','ak_abd06de4d8af4bab','2023-04-04 10:18:00',NULL);

