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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$dPwl2fxuhexCiTFs1vomi5j82cwo97T.zdfEyqSQxm8GzpRdGTlpi','user','ak_ea7219ba48b88079','2023-12-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$um1YGhgL..eznRdU9FH04iBxjfp5IxJogLqll.FPIEezL5xGm2sL8','user','ak_cc04d94be5a74ac4','2023-12-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$XzSK006QXIQmAVqnJMq0W8Dq.Xk0/1g0sVTqyEwABgipvivuBg1rz','admin','ak_2f40a121083a8d67','2023-08-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$yYrgsBr9xpxuymwl6cVe.FHgN.3ldjVCQdD/NQ5JvzrLVXtvif./m','user','ak_67a664e96241fc91','2023-05-14 10:16: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=9463;

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


