-- Host: db-master-3.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=28973;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$DDFjvM0.Rg/zB5uFx74k.2v2rGDXeUetU/WCIrejpwD7mlbKc0EFU','admin','ak_f9c298f5159afd3c','2023-03-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$UFL86MuGv1P4ppv.AJJwae7cSxEwqpki13FFEBUot1Mw7j30QUcs.','user','ak_f59acdd15226dea1','2023-12-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$XVJo7PT4kmPQPGGuiqJDc5ABZAcWbrBryjab8pOhPxSfGPPgjGZgj','admin','ak_3291caa182baf1fa','2023-11-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$fpCQd3pXwTJoAaCCO3CAEOfXMMse5NNr4w.uRnvmyJLpAPiTAquhC','admin','ak_5b022ed302893d76','2023-04-19 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$1RYC.qHLQZU4OpZDRakXCrNXbj6nUdOomWseDoJQjQpDG.2bvUIaF','admin','ak_da242bf5626679aa','2023-10-09 10:14: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=27863;

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


