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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$tAUXzdeeKW4SeLZUhipRVe1Y.4Wq8RNIw/OmzF653fKG.xUe.3bgV','admin','ak_3fd4a72dddc615d3','2023-01-27 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$XkoD64ZK677hKN8c5JL4p1NmzXLhSbl7IhU3hda9O.e9UIG6MTfmG','user','ak_7fad4b0082cab131','2023-05-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$YyZMfuKgjol.y2EVSrTLaMz4p4aNBdIT6l6SGqmSwSUyhkAnn7De7','user','ak_ea06666f9b0735be','2023-10-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ChuLCT23BuW3/hMfgZzARIjyQH9lPj6Ws3EcPt86wS1CEWt/caH5h','user','ak_2e238f5d7894c1a7','2023-09-19 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$iOPiu9NLWXEyHa6jw.iu3cjJaGkNT.TqmhY7Ae47GWq4EBapDpMUB','user','ak_868cab0a2e7093c9','2023-08-08 10:16:00',NULL);

