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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$era1E7BZnmG2OlVMycSO6aA5IwfWAORwfnF3gWjYOuQInxOq2c5t.','user','ak_8fbaa743a488b8a0','2023-07-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$TeJKzDTP/6N/6sqGvFLnmtataVDuomXmHdP0g9jpohHAuivkz/m4x','user','ak_46efcf10bf171842','2023-06-14 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Pgp0.ne9kChxiVJVHZPHj0VZUpCFSIGxzGtb/PxOa6J4U6gNhAMba','user','ak_478afdb31ed98d22','2023-05-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$GnKQdDTv4Dna4lv/peLXngJv3X.rzdIquyayvQCEBgt8Miaxq1fkK','user','ak_42503a84e68590fa','2023-11-26 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$hq4HBejhrZDevCBkYzJFAfYzwrI2dknJa6sLRE.rcYPT/g15IZDil','user','ak_20bee73c1f203f33','2023-11-23 10:04:00',NULL);

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

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


