-- Host: db-master-6.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=5951;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$ZOYCBwYkeHWijLbZQHcde1AOEW9c0YeNGm7SJZW5o9PqyVwqo8oLq','user','ak_1f4ce552489f8075','2023-11-01 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$siVGMJZUmLX5ujiOJ/R95eLGLduHyt8Tjc3iO1qtvy8KNOJ2MvemB','admin','ak_5f08521cbf0404d6','2023-03-16 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$DPLTtISXH.D1Ru6nRJW1J.vwPEFyJm8tNQtlzSbszjCx8.na9iK5f','admin','ak_044b6cf8b711aae4','2023-03-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$ZsD.DLYqIPrE4SV0hl0igaBZ1ocDCY6CMDLz.zT/wxrb6vLjJBFzK','admin','ak_6654db8327fe99b7','2023-01-12 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$/75MyB60XkoUB1m9bJqp07Mjpi.9wEaSEQw5fCSBeCYMW/dqHNnBI','user','ak_0e9df24452cb6838','2023-02-23 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$rVJSR0rsSbdsQNkkG.jmswS20rvoGDwhX/0sCwwFZlu8xTfa6eoAo','admin','ak_f08c59ea7c78a61c','2023-12-04 10:03: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=40430;

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


