-- Host: db-master-9.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=5562;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$D/xBtRMnmAUSOPbDf7HZFZeLKOG1HiQwR5SSC/1EWLy30D384F2xI','user','ak_c4a4b51caad923e5','2023-06-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$2hnJRryaYwyiT2QfYnKbZqvFk/A7Gl2uRkI22H3Sy1E5SVHxr..HK','user','ak_506c7a29430d83c9','2023-05-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$wshS1zw.A1OtnA/FjQ.dYpQP8wxTJBP7L6.0hmxHblxEyTsa.oZoQ','user','ak_4fdd6ce61a68f3a1','2023-01-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$vcx.MPukoVOfkRwrDgJ5vdhg7QmfSEGdFsN9sS20OxR.sY2qDJL57','admin','ak_7b1c61b70bd12b79','2023-02-16 10:23:00',NULL);

