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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$1ofZyH4Evy7XkwxZmD9DCsPZHCIGvElGzVGK3mzPzTeaMMRLTgzbr','user','ak_356ce45815352c10','2023-10-05 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$rk0KVtCw0tC6O5pDbuh21GH.gIcNCJxc//a4pFrKC4IJV38re.dwi','user','ak_00f5c78bfd9d88de','2023-05-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$4P1kgVcy0Tbs7FLl8emGXKdBvdOMs8Y82BSCdx92fwfwW2Fj.8GMh','admin','ak_7e7ad288dffff920','2023-11-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$oy.7.omtbv8CYVJzqC8gkDOM1jZNpCm0wCVmlJVpBShsXrLaa13Q/','admin','ak_1c4fba9d41ef290e','2023-08-22 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$v/V7ScCUg6Q7.ZyL5yOHngMfaj/jZvMXgMxOof9to1pDsKQJNAM5u','user','ak_0fd253043b345085','2023-10-15 10:12: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=38049;

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


