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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$EfFGony8x/6vPVBgY8/n4mSl9lv.Pycpe.fkfirujpLQHtNqT/p60','admin','ak_dcb94324b5748636','2023-05-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$EtZORKX3A1..gCXBA1nW3eo9kZWLL51f7tvx0FX.RtsXcLqynsLqS','user','ak_3e4fb0b602bf348c','2023-03-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$mRUYsb2ddOks536RVGVlcgeGfOyBdEQfPn2hWdoDlLJZN1NCNpecQ','user','ak_657dea62a3c87c21','2023-07-18 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$2PF4IkfgwXa25anUHmEgNB49XIeYv6kLrYLGOHqMD1CCCwKqjlCqQ','user','ak_8c4dde4f88e0dae0','2023-01-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$AOEJ4BJvSyZlMU2m03Uyb.r0yDQ.yYLGd1kU2TpOziZ/5sblgPrtW','user','ak_fdc6c2694925feee','2023-08-22 10:08: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=24829;

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


