-- Host: db-master-0.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$kvqqkRP/qf7tLFwaRjXVVhYIhfZ12v6gjt1jawsM7pDgyilA5hbMa','user','ak_8c8053325a93e7f3','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$730lYQyMytJfEaokgXNr7S6mEvCQOaqYngamPbVr3WXCNTr2asYHQ','user','ak_d6c5b2bb160082f0','2023-10-26 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$NMD2MWEG6eZlzDwTPlD8KI0ICh1TZ8foUT2JO9MVm9ytsPruNzTOj','user','ak_0257ed93a20cfbf0','2023-10-18 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$n0Jsohk/rUDsIUfhzUKzQ8CMuxCRbYeMZ3.Ofg4QWV982TRGQuFwf','admin','ak_7f7e2af9db2e3c36','2023-12-17 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$ivw.CnyI6QY3vzR7kKpcL7dO0GoYmx.G6B19FX8FnqjOpw.5gS40e','user','ak_e99fe4576c36ae47','2023-11-16 10:04: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=48291;

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


