-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$VcyG0RtwuLZ96R4sd9.LBbfYbXIko5E2JEHZI.Jyu7Y2xBaBJabJh','user','ak_b84dc8afe021116c','2023-07-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$SUWfnO8ixwcQI6bI/iHBcNIRA1B2.cMqW92lGOGY0678bTg9PL20p','user','ak_ce50e133794300c0','2023-06-15 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$.5ZwKtfVN38vhrb5UM2q.tOczcGPRXQa4HScRyUUnpWboUAkqXKGO','user','ak_a3016a8860f8615c','2023-04-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$cyUJ4nT/FooN4AXmRrLE3fOtXM0GOcJBz.N3nk2Qdx6e.eGgDGcQl','user','ak_072480c9763e0b98','2023-03-14 10:17:00',NULL);

