-- Host: db-master-0.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=13299;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$atQAS5LHZt.fueTOTrQMx2krmlam46y/fQ/0pic1Ide0J2ABHcDSI','admin','ak_4644e1e3cc6d6aa8','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Lcsl.YbhxI0ttIbSr7NjK6xOw49K9SvWpbppHN2TfhwTjN0PKpQJY','user','ak_1b9a9b8bcdf4aac5','2023-03-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$vQewxLKgZqwBoJndihGLf7gbvj8eEz6dllmswqQOpNisMGXcMCWBb','admin','ak_43c3df4029de4511','2023-03-15 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$xcC9i15.sNB1RZiIInTHXIX4H.MClYe7WdpAnpLvBVER/k//J4uSt','user','ak_35c5cc2ddf3949d2','2023-10-04 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$g2QF2at.AT6O/fINVCTSVFo/HIA/z7osAtoXI/EK3YCk4JOAWi6Yq','user','ak_4fe7da9c511955d3','2023-09-04 10:12:00',NULL);

