-- Host: db-master-9.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=41372;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$/6ncdP5kewuKh6SB3AD8ex47s7Nn26Vm5Rjd4g7CUcW1GNQNlQXoJ','admin','ak_8d1117cf802307e2','2023-08-07 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$3C2rdZQX5HDws3fiN8Np2P/rWORNs1VAlVoQ7dhV2ryW4yxXrplDT','admin','ak_0ae635f90b0efd35','2023-08-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Kh6ANm43iyPsdBJKXL/C/K8LUfA7qXLRCzsAjnzWBdzmH6xuoMecg','admin','ak_51cd4247d4253ca0','2023-03-10 10:15: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=41841;

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


