-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$ozhf8T4yVYC7x6ZNL2BCs2ppM2z0vvLLdqb6J0nZCEdX8dDq2jmlj','user','ak_03cde9d688c775e5','2023-11-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$QNvbyXHFcTABvdELRblNySiwCAMpFl6DYSRv0bq3CdS6lmVZSNDzG','user','ak_d19961d08b8e6844','2023-05-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$bbWdWmxMk4I0QcCy.k7n7wT55b7v4wpJaj4MfUWWTi1yawsgyv8Gv','admin','ak_5051ba975936eaaa','2023-04-19 10:07: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=32266;

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


