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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$7oLjTb1CZ5B0WLtpBiD9V.XmQWY3Ntm8qCeD6oSjVda7jD2yTddGG','user','ak_2c83c7c52c6ad16c','2023-08-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$YvkjRrVyyvLMx71bC7mIupstIjjUYYDYaSV4znsw9PWymUGTKbl/F','admin','ak_5b82d25e32eee709','2023-10-06 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$zxcp8PcObn8DV8iYDBanr.BE5E3gferwKqT6jMnUnjgV6nr81NYRO','user','ak_9cafc2526e0c0ab7','2023-05-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$T.0.yt.db9lcQzePWmZXRlMjbaxliRP6/k198guSPBBRcaXwP8Yqm','user','ak_fc694b3c74bc46af','2023-10-05 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$KAV0NPAlGEUAdwxBI7nBFil3osUnIYn5a0CyD61ETs0EdxXP9.Uyz','admin','ak_1c1720018940532d','2023-10-11 10:09:00',NULL);

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

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


