-- Host: db-master-1.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=10789;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$KIEwJr8jvaeQE7w0d8KciYMzHF6cUQslIoEraeAFRhvMnOfqnCGlO','admin','ak_905a387e73199912','2023-02-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$dIQmt3zs3NeKXFIJfP/6sacwrMNpAvCE4I.jxupRawVA9fignhc.9','user','ak_19796cbbc77c9d71','2023-12-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$7.fDXjR8ltQx5wjQzThJHVE4GV3/mFf/hlQV9eOMTgHNFPyuC0p07','user','ak_6fcb851158b0ca6c','2023-04-12 10:10:00',NULL);

