-- Host: db-master-0.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$zQV5eq6WoIKJV.nXZqBWqNFKVEhUX7tz4jpIBzZelz1dBnE6ZViCp','user','ak_cd46483c1f1b5586','2023-03-23 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$rEJjuJjtfRV9lYDrlAEme.iGdKsl9Dkp.20s2Oe29bb9yDhqCXqqY','user','ak_00dd1469c404c2a7','2023-10-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$kJo4p2pFbOfK0Y6AqLRPEm8ZD03HQLtaOs305bbqGS73HfPJewDaO','admin','ak_5e517bc51b4b642b','2023-06-05 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$0OtNuC7GSpFtUyuEffj325nhszMt1kUv2HQZR4mIwNnOICudtJ8jd','user','ak_7f5d2202a4e52a4a','2023-12-03 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$s99iqJ2LiTtOucjyOffUIZfcAjmvH6hf5RVu6DWIBAg2t29sjqkL2','admin','ak_3f5ed811b93b7516','2023-06-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$F3IyE07ZgvdvYAFtjy66lde0ocQxVK8f7atnCATK8QD.kkB2y4bUD','admin','ak_b5ca8c8b64411fdc','2023-08-22 10:20:00',NULL);

