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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$mPNGiSXSBcyuejmKeYX7OdwrvyYvRR6mKuyr1mr3HjBNawyodvOYF','user','ak_f598880ce2ede5b9','2023-07-26 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$pWOz8MxuMBe0rSVbv6TpUiettMd4RC7q/tX0BL1zkZNzZDaV/pLtB','user','ak_6d5a2adb8ffd4a08','2023-08-16 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$8Y1XMGdiSA8GoWwllovNyVkWGhzZKLZaSBnkNw8cz/k33rHiL/p7c','user','ak_caa5416ef0a529e9','2023-09-01 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$XFNPVk2sNi/mc.GsK3nw3zAfCFq8VVbSFlKW5rN13Xm62lvjX6RwQ','user','ak_365ec900aafbcc7d','2023-11-17 10:23: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=47323;

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


