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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$0E7BYGDqQ1kW4sNOWQOfQWa2z5.6BQYAyzyDhz/BZam/MSY5pjDOm','user','ak_58188bec070f0db3','2023-03-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$02B.91h1x/uOT.oKQDvJh6ULpXy8TKO3ziYz5rTFfPVPYyH6QGSk5','user','ak_1c8fa574b842dd97','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$6cceqIQQlorbbK9W7AHtGjhwbt5KAXgbAaZgqvfD8mrjkDbxBz6Nx','admin','ak_0cb4499e131999e0','2023-09-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$B69G11AAtKR0ucBVjncXto7cwIRfDPtDaQYXMMA/i5/gTgVX0ba7k','user','ak_a39797107d6ba07a','2023-05-17 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$RyONsuLNdCWgX6Aavypi4yUgHA2K1V4ZflPEafajVK5XMaEuCNxoK','user','ak_4915a7b4657d3b4a','2023-08-13 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$0mq0YnYHNkBK2hnb0YqF5eZfU2umlqLPfL/yHPjqmBNnx0L69dqy9','admin','ak_cc873d8aa9cf5830','2023-12-25 10:09: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=41202;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=12733;

--
-- Dumping data for table `sessions`
--


