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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=4704;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$evQQVcKQHq0OQEIC2iUQDHTn8ritN9ykPEDzej5akoWlXnQ04R4dD','user','ak_fe39fdc6905ed652','2023-06-14 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$gMrLUHraddUB99LfL9HqbfNpYQl6T386Bwv90iQb0d7yoLCGABTjq','admin','ak_fe4b99702451ecf4','2023-01-17 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$oaH2HFkkXTRasGp58vcMHFuc7p3iJIVIOT4XTU3.EV8N94PWIU.zD','user','ak_004fa3bfbceadf72','2023-11-13 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$RcMZi0OnzUxrRGrQ8Uq/lgE6ZzFzlx4Sl9oL.Clrf29hF.FXyuP8c','user','ak_fd613719a24f5b24','2023-12-05 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$psTOHCzhiHARTOA0kuyDh200nhgZXkS040t//d6rRn7NXtDKTK3wf','admin','ak_2b0ab6c9beb600f0','2023-02-04 10:19:00',NULL);

