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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$JKEVA3Qdb8Hql8QNtrtKLG522F4nmm1PVKk01vlStuuTdJcP/ok3R','admin','ak_3df9634dcc676ce6','2023-04-01 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$mNbw74.8y7rSG/2RNRKVhz0nhHuXiiNTek3ND056Tz78vjNJ8KsOs','user','ak_1089b53314832e40','2023-05-27 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$dLci96589CIjqXSDp2vJ0yLg7YYPHlZLOivgpNdivqs9iJqoy7NKp','admin','ak_4f5b1ce0e1d701a8','2023-02-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$sodvaTEOERh60plXeHvl1R4TIUFAmSyTX.wBq.QozixHyRCA810FY','user','ak_9eba364e87081ea0','2023-02-05 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$M8ZxDTd2sF2U7w4TlvH.pIDGbZZoFfqs06t1B8GnkiXZJFSbAFYKI','user','ak_2aaa3db9d33c3de5','2023-11-05 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$DGGwpSFZvzdv/TFXV0OFy8xFPEhu9bxhhogf/uEMczN5oxvoz9/Ke','user','ak_6eff41aed39bcc93','2023-01-07 10:17:00',NULL);

