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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$xs5WpjQh.GYrESDJ0e/eWLlA8h0JoyNIRl0bE3.JiD.WkRotPAv/C','admin','ak_938953535e3446e0','2023-01-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$oIOQMUfmo.gxVk2EcqTRn51AQKG3sgxvUqsLMlXh0Hj7mKWuYU479','user','ak_99f3fbff5c5c1fc1','2023-04-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Fe3cJZ7Bph.uEYI619iSZ4S6rtnnjR6CXTtg/r8gTqzc3vUD0ImkA','admin','ak_ad5cac6594b838d0','2023-06-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$mn6hskb/ZY.dpFpGl2qdH7Ijl6FrE6GNTOqZgm4JpZma68w7Qti0I','user','ak_2ca2d89a76fc6546','2023-12-06 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$.U77R5w0Xnid5aGqv/xEkJWB2e8zTXbgsusy0kVT0t7By/FifUa2i','user','ak_055630c8e3c3edcc','2023-07-08 10:18: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=37140;

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


