-- Host: db-master-2.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=35983;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$3NmLDS3y7qIEWb0BOkXD45YOmOAKEFqFMUPRJb5DTIiW/n5xura0X','user','ak_d4f346862844078c','2023-09-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$QkqoR1bgMAYtrc261h0dt/4mDTyWVplK/GzLPxAAnZw47TURh7VXL','admin','ak_aa87af57ff6bb8c8','2023-12-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$qrbYj6DVhr.ARP4SIVuwIjtu8i4vD0c6/jR1cbWE7fJ5/oOIWn9Hv','user','ak_c7222914825cc721','2023-05-11 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$pDvxkTfYa0wI26NEz.RUCIQ7Xdd6iNxQWosjoKe04sSDr2Wqjmhnq','admin','ak_02ec031e8ed7bdfa','2023-05-26 10:10:00',NULL);

