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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$fYsAZ0WD1i4grK4BUXPlAD6yrZYc.CU.Z4PxXUpKn3JbvEJtv2fTD','user','ak_48a84f9a30c56b64','2023-11-06 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$lK13ByWCHgyvE53IG18kwUbidg41EhusotpY53sd/9E0u7QhZjAA2','user','ak_656935572bded1e6','2023-07-05 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$IQ7bPuhyJRvhpdPBvwG4yEIrZTCpeN1SR2o9wc0GGGsEm7yS3WU2l','admin','ak_2297e3699eb1e2d7','2023-06-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ZH9gmJYjEz31it16HDm0JaZYVpiYOyGwvDxa5Pp2WoFQMlKpdbb3p','user','ak_6727b138cc6a85a3','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$rdhCFdry/uyNYP4JjWsXCL5t4ODwKF6bjjSE9ignx47B1VuYsTe1M','user','ak_5a8dbdd6ad5ddba7','2023-03-09 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$s2amHESg0fQj5wJCYxbGtistAUCCE843a.YzR8dZ38D3GYjpMe5rx','admin','ak_e7bf55a88d60daff','2023-04-02 10:14: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=5359;

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


