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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$C.v6f0Ttt3Ms/u46z4exgGRcQ.Vj8LKHYLYl.nWqcf/S74Bh0Vkud','user','ak_5b5ed23803d2c962','2023-02-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$iet4K1e8eR4KvPWxgc0S8tJrb674Zdn/Av8Ize2QRCb.xOvSqN0iQ','admin','ak_19c3b44069af4816','2023-04-07 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$AlmQzPYW8F0eB9vbd9TIE4kdqJoUz7ekEQ2RZf7tiEOMqh.W8fTsU','admin','ak_84471a78cf822bf6','2023-11-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$vSmbfi.83gxVnjODvUl.9AzrzwM0T5C6jzhUw/EtHFRUB8vSKaWxk','user','ak_40a4c5be1839b18e','2023-12-02 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$70CUfM8rMzhXrjJ/X57tpJqqcqaMngLEW0N7BcOTUU7pCh4U02/jq','admin','ak_06b397649d3c2ea9','2023-10-19 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=42758;

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


