-- Host: db-master-4.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=42957;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$hSoAtzrToLoRAsAzJ3BO79H5OAtF8Oo5FnorShVyjOTPakWvh.omA','user','ak_0773e349925f11b2','2023-08-11 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$DERrPxGX5aituH/zm7AOdSpizaZdt/SsgWEAOL1R9nZJzNWwWWqxq','user','ak_9f6af1ad68b16b4c','2023-01-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$vhg.CgwO3GE8HdtdPtA4lhmvzOpBBb0MsPoBte3d9uTqXe82jm1li','user','ak_c79046a548f1e917','2023-02-02 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$HMfi4nLa82BoiyJpZBEMKyMMqRWOwz8E0YDpWmQVp1rkxheHytvki','admin','ak_95cb8ab48eb8c248','2023-03-13 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$f5V4kWQNS7IHSknBa9W0hAYWQjYSiI689BBe5HOexjcVKHjv9npS5','admin','ak_4ee4b4bed396d1a8','2023-11-11 10:04: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=50360;

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

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


