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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$.T.JyGcqEEUXTwhuLikNb0ZHccm31B3HEl654ynnoSvxtaCgk/O9t','user','ak_1251e1320dae199f','2023-12-03 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$SbMkM4M/oUpNtB/MLmotbG8pWLCeRd7d72oGcZv6wPz1Wa5Yt0tNg','user','ak_8863a7384d0b74c4','2023-07-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$PpSswvxVN/oZztw8LGIytabF2yuANuvaNxqqTMWwjR.7ozWm.cYnB','user','ak_2114f797495c81e7','2023-01-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$.IQv7INJz8BkPprtBOpTASNepPY9LAoE/LS08quI/xAFeE2JtMkZz','user','ak_01fc648f4d00f051','2023-09-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$NifpTh9UdX0Nxh0MQj6dDGCu2Qsy/Pg6FC2F9VKY3jOlwOmA2BCRI','user','ak_8c85d1aa262d0e2d','2023-09-14 10:12: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=1216;

--
-- Dumping data for table `audit_log`
--


