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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$z78YsVngph0zWJ8FcHFUUCFgoTcsXgaRuBcO5ZwM4aw/Fwi/1krTQ','user','ak_dcdfa756141babe0','2023-03-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$tr8fPHgyNBlgL5CTdxRba7D7hYjS5oEH5a9hf0LVqRVpNQuRKhwuR','admin','ak_33b1960d80cce3a7','2023-07-15 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ysPDfI.S7BIHVI7mVL7Jrjjc/TQQ8H9Fwn5XX9i5fnsfrfYQZi9PP','user','ak_5f96b3dd2abd3b37','2023-11-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$zmMsnGghchTo/GhULmrS3xlyLeK8Bn4A8eCOIr3S53JwyH.v45Keu','user','ak_d6a5ffc1f3b969b4','2023-06-24 10:17: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=8194;

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


