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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$RgQGQrFj4QZL376IUuXWyjBk5Sir0QFWuY6/YM6hXWybZfAfpFbJJ','user','ak_78ff858526b3db73','2023-01-03 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$C5tYV3r6Bpx2vMriUIVsLGDprz2wUp99nWCfG8vxZ4vxN7NBehINV','user','ak_dd8fac5c2dd1c94f','2023-02-01 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$MtHzdZzCEGW0DWqr9.6VS3KAdbrZfYmnDMFwxjKJCEYktEWJmiRWP','user','ak_eb6e33ac5035c51d','2023-07-15 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$yYUCfghsWvd36tZg3r38Mydnu2HyCzYFY3xtoZ5hOUVPDIE/R3LUy','admin','ak_64d8a4d327419cf6','2023-01-23 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$CTRoGV9gF/OuRtZjwwaeN2zN5.cdD2IxiB3MdogYEn9HssE0XdoMW','user','ak_203ccc9d43d25308','2023-10-22 10:13:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


