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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$1A6ddFS3z0WmLATfYfAoFW6AIUM75g56i3FFu972S3IkaDKmCZnAH','user','ak_6f178c98c2dbb696','2023-12-13 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$zYCS8LAjrQLhoFmI3dtW5onOyS3Y1cVogUYeL9BF1xHKpoZEUk7yi','user','ak_556cfb17fe00eff4','2023-06-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$iejNs3St/kIPS1pswp3FMVbhkm4Ai8jWRwwImcszX.uxoUP1yZE82','admin','ak_b95a9c6ae7efbc20','2023-09-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$gSh0qGNnXuFCPqOjgihBTQFvyyorPK5JDwtgQb9qyOPjpnhj8JOow','admin','ak_1beca46ca1dc856b','2023-09-11 10:07: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=26736;

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


