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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$X5mIIprVzLNkw.pcFbedrvBTV5/S.EQnbWLdH1ug1Kh24MsjjyjZs','user','ak_5fc07779c0acbee0','2023-09-11 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$W09QQMnuUq1r/9HVWy4g/lvJMNlhnBFTdjvAhYkQD4dpGwgVxEOs2','admin','ak_b297663fc1d54d93','2023-01-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$PBMbYZvVfCwc8aCyftiLF4w/YNZN69x0tQoDnebVlAefQTJ8jSmcK','admin','ak_eb39dac6cedbd7a7','2023-02-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$U2RpNoUfctbqSZJx5rz6MOEpBAeWm.H4UIGROXeKTB.Dp5PAQgBcb','user','ak_ce80f286274e4ba5','2023-11-01 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$ahlKqjc7GWwToDlRPRlUuTxX.dcTK76H7YweqBL7uIRuFy4NNA0qN','user','ak_58f66a966f2dcf45','2023-05-08 10:17:00',NULL);

