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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$vCr75ASjC6RWTJPtBqszOiQfcXx3s6MwYPJqTvfqHn2RNXv5nf15b','user','ak_90406af5ec142e39','2023-03-13 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$x/8ynbUIP.stnLzGTHyXsBpN3WUPy7So94Yy7zlDIFKcCSC5wEdly','user','ak_2c25c6efb9d2ff54','2023-12-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$OJ4iCQ0Ur7bNLXPKGiku7aeVKR0axyNHULqhMAK.ly87pgh9uHgxA','user','ak_a372f16b4f6bb81e','2023-11-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$raiWGcvTunzmobgV5Lm.gsrbjag6aE03g9L9Bx0UOCdrfeHBgvb64','user','ak_7988fc441ca1cce6','2023-07-24 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=4337;

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


