-- Host: db-master-2.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=28485;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$JMz.s6NSQzVcqngZJ74nJwm0eC0lwZ43Zwb4l13Ot5JDpTFrF8jn8','user','ak_a4a47da88a8d2f4b','2023-12-02 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$iSpIAtaeHqDqEOBSeo11aNTuB7z5mfagJ6rkot4VUi7YSr7lrPSVm','admin','ak_ca6706b18a3856e4','2023-05-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$mD2d08s1VGEEXgCRADaXFP6FXFgx7Ao1DfrTwM0UUBl7T3OcxnhFi','admin','ak_60f30584e3439449','2023-09-05 10:06: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=40633;

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


