-- Host: db-master-9.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=49743;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Nia9j4y9EeDjL7q/ZUtucsVR0U/r8rTDiw0J0nKoduETktS/yDfJX','user','ak_7488b7b3e7001a3e','2023-10-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$jz8Gw0OFG7O3iSVQw8XCKLJr9Hldm1PXELLoJ2dDsY3/zKXqehs4x','user','ak_1188475986c50956','2023-02-16 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$7w.jndGlVrKIds6P67NPyXrj1G2Ww37wokACzJ2.CsyCSCd7yVqwe','user','ak_bfde423059f834b8','2023-02-07 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$jBrmY/DhD78nwGP4m59g.XwJnAsN6rQ5Tc9WrQsZQ750DVEEn0DZv','user','ak_c8771d0479fcfeab','2023-10-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$0tiOFikwR.NYk3JIiquZYSyYSdiGL3hRmRp20.4prrVrB6kJ/oT87','user','ak_7e5e4c822c71f347','2023-05-15 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$ujyWIsEExz9dhWv7RpGtwSSrcItkr4zhy2Xyba8M1GSIZ.B2lCt/x','user','ak_517a3fc4914f40c9','2023-06-07 10:14: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=33221;

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


