-- Host: db-master-6.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=13831;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$pMs6PuiXg8wxAAD5Wj.tqeKJ.wo7PNv1WABbbiUQcvGVwXrtIBzbf','user','ak_224b43846d9050fe','2023-05-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$s1BeB960Dq1vhVzwAUkq2hCDBsoYRp5dTvcyK4XOO2CZA32dbI.MX','user','ak_b3bdf3ca19059db1','2023-10-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$g4BCSiiYvUIFVqtA8JdyQaoFjegxUBbU/q7ZF.Qlw/ab3RBebo3ye','admin','ak_8b96c9307a6c381d','2023-04-04 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$.vviI3f0bgco1jKsOrV9BUHHlyKlC2SZO4h0hAdWjZIm2M0KkRisg','user','ak_20f98d36a019f6b1','2023-06-11 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$RZhf2/LObD30xicl5ilgzY0KcTxP1fSC.OcadvbARfvigKRYAjD4f','user','ak_51fa7b5614fc82bf','2023-02-04 10:01: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=28783;

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


