-- Host: db-master-5.internal    Database: customers


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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$wrhnWhjW4PT.MLYRt8QJ.vYe/onhYNzneOSqA3tEI9MgGRA0X05/4','user','ak_56e07f9af31511e7','2023-04-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Oyd7t.5T4heQFAulc95qUq.tiqUTvmhLsHLc22VZPUCYWVcb3n1MC','user','ak_deddba5114eb7297','2023-04-28 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Cyijbb5f9p7ombDqC2DFy/c1ib5eBU7t8md4qfitExLVYdmn3Qeve','user','ak_59f5e99c3f6ecfa7','2023-02-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$ZTFNrJwFEJjtWlLWw0xXYB.EkwueV8SZNqn4dQvHbja8E2sELq8Yx','admin','ak_3810650b26a3070e','2023-02-14 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$QpQ8pkxRhNwybOQJwaA6Ture34a1FpzWQHlqMDfQNR.t/j.TZ.yYy','admin','ak_46769f417fa6dcfd','2023-08-14 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$TuC5UL8nrUuV8tL4HUU.ZL0R.Bzkb.YjTJ/Xkorg5Ovles5QWHKLA','user','ak_fc85d2576418eccf','2023-02-09 10:19:00',NULL);

