-- Host: db-master-6.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$D.wGBEcszZR6uvlO9SCgRY2dhEyXwfWs9NXRVl1Cnrxv8Sbr5scjX','admin','ak_8ff93e2113f4b9c8','2023-03-02 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$oOW5HKxFQb8bRqI9KsZ6P/4/dZrU8kOoETVKPmTNoW4zcscEs/9.g','user','ak_2e79096949259958','2023-04-04 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$qW7EFBUxZLUSGZBbleBc1JcDZTxKt7PdLWzZSG22Fo5s8DPTZSfwL','user','ak_ea45a15bcfd71d44','2023-09-06 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$anIhgcbSUhWJbrcjDyeIfLH6trOK53197pSHbC9H8t/y2BGaPRHtk','admin','ak_12cc76ca89e7e400','2023-10-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$rTT5HRpndAfKRK/UayRNFrkfxQlEOIx0Dkefjq0Hr7L0XIo020r/L','user','ak_71de745acddd9711','2023-06-06 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$mHBzm9xXkadMyhrqSzGJ.MJhy5F/rFE0ncWwX6It9CU/Tb7y4BPMV','user','ak_189a7bdb0bab601b','2023-10-22 10:02: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=50468;

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


