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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$5PyY2sSlTt40DzGCdEzPJkDCVay3AgrbLAjTxb54JCfTxQncyoFrU','user','ak_43e09c5359349b7e','2023-01-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$v3BTA3AP5jlpYrR1pCVScm7SqunzlbSL7FUhA/NUx4cF4rbYWVmCx','admin','ak_4ae1b8ac64471d9f','2023-03-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$PbwVDJymZLwFzgoVdZ9G1yFD5HXldPngtunYQVZcSdk6JQz31ilgA','admin','ak_93f5ca178ce1ed10','2023-09-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$mIpxxFbaz2GolZK3298mOedTC4ZxuHSNNj5v.B/39XJrkRioNX2.a','admin','ak_bf7fdc4183a6ed84','2023-07-27 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$54AVhT.SjT1aLAkbsRtXjJSXO8876eWUpN0Un6xagtZWB9W/hWuNs','user','ak_74f6384a78798bd3','2023-07-24 10:13: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=9126;

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


