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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$rXxiBJZKaUaBbbTVwi/l0wf7fdeiilE8ZizuFnk2p2RtNz9Wn85Ad','user','ak_a83c358124b85109','2023-07-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$/9CikiA4dQo4Bgoxk6J8dNLjpa4i/FGptrM.HHNk6t2vw686blW4j','user','ak_71fb8be9306ca2b4','2023-08-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$JHtAkIjSL5tHGZtk/nwWtgLHbblfnaUKI0xXoW2ucmqECtodq8GFx','user','ak_4b00fea4940bed52','2023-01-27 10:22:00',NULL);

