-- Host: db-master-6.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=31214;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$2SN3GjcbsiDSe0Afnm/20tng9m6MlOm0AgRA6SjzUX5wTc.fK.DWx','user','ak_f4dc59ea9e87b279','2023-03-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$DZnlE4Fnuq2c2/yzFvNoFZnljOgpq65CIs/XFUL5p7JR6TWYhIr0H','admin','ak_90b5b62c5548ff8a','2023-08-01 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$5u3AfbSAb4JQIMakTHoMYHmnj3xGo8dRr8AYKbSMd3nXCzR7V3gHT','user','ak_fd26487ab27f280a','2023-06-08 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$FTSn5dyKOky25FZVbjtuWA/VrUaAtt5oPB8ZiOVKXBBqsZKgYvSNY','user','ak_f493776b0d6145f3','2023-10-16 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$8vUy54KoFRqt88U7BOp981CAQ9VTgr.GtzRxdI.SAkaxGcnmD5Oiu','user','ak_c8827c49f364487a','2023-10-13 10:07:00',NULL);

