-- Host: db-master-2.internal    Database: webapp_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=2512;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$/jF56oXH8Yuu73TXVJ5QhRcs/QJWAmJOqa9iU8thHTDLssYxh7L3O','user','ak_d8027ef73ab7d3eb','2023-07-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$8LcayPbS.W0IoPc9moHjy1R8u0KAJkutXW92CWVztg4/5Pv7Z9KzL','user','ak_897b27677c803247','2023-02-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$ZGpw9uPWpf9rPdH3HAXQ9DLUKIkiIxm6BRgSB169yz8E7BFmRkcF.','admin','ak_6504505b0885cb31','2023-12-07 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$rEcN70UJovFc45K5NpHL6AT/0QmKTqxJxd099g67iV9UrNTX5dVcX','admin','ak_8dbca85124ce09dd','2023-09-13 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$IteE0ahCZLCnwfaHSgcBLgPu5V2gTCiT5SvfHj/XVgopy5T2IrTBG','admin','ak_202dc0fb367cad94','2023-12-24 10:20:00',NULL);

