-- Host: db-master-9.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=44161;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$yOXbS2jTFvEbAk2W/Tgoq9hhi9Rb0pqdtFPUhD15cP9L8BTrqrJ3N','admin','ak_1c5855b8724cd10b','2023-07-04 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$EbERrqivUjlu9IbdIDnpnN3CovjpKAmcuY56IHDhdtsAgj9Dn0/rn','user','ak_f8d2543aadb89e3c','2023-07-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$ehLUE5DctnP2WsaXqHpRwJ7xcjR.PisFeDdWzqt9Y12UXFtThDD4w','admin','ak_7b590cfbc97ed9c2','2023-08-14 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$A84vqsxLF5s7L6WjXoqEI83xeIKgHBC5T4JqGwk0lPoGLklQeVCvT','admin','ak_06a9250b33e8b0f1','2023-02-06 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Td.JMBMRLkeqn44BHQ/lixhriUXTjllM1DvdnGOJ79aFRR2HnVODV','user','ak_32065909e7bd7523','2023-09-22 10:22: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=15215;

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


