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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$2wuuQ2ZHsJZyPBTtaEpqZNaRTfdEDJ/q0WPAZvfVZbQne2v8/yHM0','user','ak_857b331804b102c6','2023-10-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$gNmpezhTOgl950OoU88JTdc898z0IpUYBQLxC0HEuJlJUULgozeLt','user','ak_2a0245bf81901828','2023-12-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$4f6ITNPX7igIBJrGtRT8dsFezle0ps2hDOXQf48Up2XKJCMhqVSW3','user','ak_ab10a80e4c9cf168','2023-01-13 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$rKM3bGrCZ3tnI8cXi6c.k5gtJYnMCin/8WOsyX1ePsJ5LEHDPsB19','user','ak_36d80b7c86e73e98','2023-05-13 10:22:00',NULL);

