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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Fj4bRuRf7rJsFR0SHdC8Y2Nmo6nz7DZ1vn.a1vA6nxuWzklnpfrvy','user','ak_519e9825df11bb4f','2023-04-13 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$O8psiNHGIyLzKO9AFy5OkbsUPae/.K6ledc/WDhwE1lX5gBBPCuM9','user','ak_039fec6942474b47','2023-01-26 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$niSnQRCtEQMVgKuZsjYkRuNDl7EY9qW/MJiGgQKeWdh.qNAugOGc1','admin','ak_41413ecb3f5c482f','2023-08-16 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$b9hEA29dTkRF3MZ2xYmMWnohwScEaE4PxQSqgg/v1DH2kekg9pILh','admin','ak_780b837f6878f352','2023-10-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$2VGH02gdqQZw1Qsn9pi1qt2trevpMal8BgxS0ITLGnFqMeb7UsSB6','user','ak_cf2805f1e75276fb','2023-06-07 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$Uz5Mn.gq7PrqgYXAI4gjGk.QG9DtqSBh9gGTjbuq0FVvgGczE8wRU','admin','ak_fa315869df5a8690','2023-11-07 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@internal.io','$2b$12$R3PW8x7MtntwJLZI6NO/pUhG8mymAuAWYennGrP576ryPwVTlwMXz','admin','ak_6107f97e999b97f7','2023-02-04 10:12:00',NULL);

