-- Host: db-master-9.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$UmRD6YhosH22sVR1Tdvfkl7Br1rLyoqrf/RdLX2YISlLSOYleA1Cm','user','ak_9ba5cc7eec04a30d','2023-03-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$K6wOSxKx13KyiYHoCKbUJu51kdtuLW1DkZTMcWhPhkhfbr4/gV76L','user','ak_66f1c387a4b38d16','2023-07-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$WYnAIWUK76wFYA9GuDzUysMP1vnfVsZrWjwXIseU6xsCp7mc44FUx','user','ak_345b1061cd97d98c','2023-12-06 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$iHqSRwH86OnqKMvs8eJJ0/cr5S9TCBkBNSMbIHOr8QBGS5KK0Gxsa','user','ak_2596589a5bffbae5','2023-12-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$HQv107OPgKUimWsNT/Pu71i5nEZkgR7FKh7GfW00n4WHdkGKxxcSU','user','ak_5a33674ff54316f4','2023-04-06 10:16:00',NULL);

