-- Host: db-master-3.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=3482;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$AY/gP3cF6tsRcxwRcLtnaAeAH0A034kgMidJ2Mo5yCVZkuKaWk55d','admin','ak_01895e9e3e9efed2','2023-07-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$/uiQoAxC8EdZXEfZsaECVDb3oZF3f435/J4oqPp8rpwz8x/t.kt8G','user','ak_58286c7a4d6da0aa','2023-09-17 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$fnQWHRk/y5Waw/WqEKxwFCN8i44TBQm9R0C9ykxHgxnGzmbyPP.8/','admin','ak_9c6b3c2cf57e6522','2023-01-01 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$PycZ20yUR0uo.kuW8LPN4rgga1VwcyFZCPbEMLERpP87TOnrPgqPf','user','ak_0474806ecb838e71','2023-07-27 10:11: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=27003;

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


