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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$t1kgIrrImtKLLsXdk9r4fv6LL/0SVFLrZYbA6A61HOndbIjq9lzzn','user','ak_cdfbfa217a35f3a6','2023-06-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$cSRYRTAbzybmchfqrO9MOzQ8zrBef.Jotejh/n2TqMxUlynsVmhfw','admin','ak_e4ebdbac752c9fc5','2023-06-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$cmmdJVOqVAxn7ZL9Lhexn2ZrT9fQa3E5g46DdR3KC2YJ0dD6NrqPU','user','ak_7cc3b1ec8c6e9e2b','2023-12-10 10:18: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=4950;

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


