-- Host: db-master-0.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=24933;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$cDMNqqd6z1BOKSqkzVQzFQp6zCQ20x706eMXaCirsfpDUn78b4l/0','user','ak_409504f236ffbbdd','2023-01-23 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$/ViBKh5KJ.7lQpSSKx5r/U/0cPd6i1dNjegT5eTYX4dgkgenO3DoM','user','ak_9f245d47da676178','2023-12-27 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$tNeZ5z5XGx29M8ItkXoVBHmSqK5GLE0c14HrAxqMDzZhDraVmsEGA','user','ak_8d4011bb04be2062','2023-10-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$RAg2wyRmTo.8YexKZ7MTWhNKJb.q68omWphKL.58QPx1p8z9i5s9/','admin','ak_6fd26ce47c933c54','2023-07-18 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$br9EYbMfroUtXnJBCeAuxa8p06CE4Ne6dQvgvA6qhK/nH.GCqrYA7','user','ak_7c416c5457572730','2023-04-22 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$B9P0Ynk7tVstHiDBapEV6Fko44VPV5cE8AmXtYBPRKx/YUUccfUVF','user','ak_afb6ed5552a47a20','2023-12-11 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$8Xu8s2q7hP7WBPbi7M6kW3ih6XU1VXnbDq66z6SvxHlEdBofMRNj1','admin','ak_1c5d174b8d6edaca','2023-04-18 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=44060;

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


