-- Host: db-master-8.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$eJ695yZBoMAOv6HzqrI9B7evFWzkavhwr2SCOFj0spmHlLdMP6eh6','user','ak_2e56bd69b5186b05','2023-05-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$x.capVbZ8Nnxokmg9rueZToSOUA06c6Wg3/BGlvzi0Kb2pyJ2cJ4U','user','ak_a6c16a62d5680010','2023-11-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$m4YOeVKSDCqAAjNxFRPFzvuXoQFzWGJgJu1Ga7frn8bLFiemGNqLV','user','ak_886abe6bcaa72e47','2023-05-15 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$cUtEJgkhUX5nUQe2x3uqHr3RKHkW6Ln2CqbBSNgdF9bz4KYQ95Gwv','admin','ak_e4f95310dbe2d2d0','2023-12-17 10:21:00',NULL);

