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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=47721;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$FO7lFnytjB9/Bg3nYxI8BvOi0MJ5wZSyBiV3sXoOEHdziYs3R8IZx','user','ak_e5de4e1edfdc7deb','2023-03-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$hK4IKzncftJWi7K/u6Kex7685/bzBg.3hZCWVH2TnwhWA4jrnjQAu','user','ak_c0fe618914066050','2023-05-13 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$YSr1yY2FaEB3h24bnMkCxflLKDWqZjbQGEJT4Q4WhCkzB95a6Xmgf','user','ak_90c6069b89c66b26','2023-07-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$6OvgtIgj1lcioI8RW6iiqr9zYZSqWLxlq1/VyryPVRF7lijkR9jh9','admin','ak_de07fdfcb6a28ab0','2023-05-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$ujhwDQBECRVrAqA7wgf/NR5KQOG1NLUYV1Ut4MAOifjWn2XKmeV5p','user','ak_9035cbcecfbe5ed6','2023-11-13 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$sJO9Je0Rv2YJAgFRruSoJ6AwgiHKPBDyM1NV/9F5/uvFrIAMNJ2G5','user','ak_8ffb25640eb62bc3','2023-09-08 10:00: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=43210;

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


