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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$iaYM/kspWsaJ9QUhAHnsYMB.sw4LBoiNxImiz/nycxiJhfXWdndhw','user','ak_4bc02f87fce5f9d7','2023-01-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$/gkUlhcL08EpJReLSdKRkKDzNMEKwFnTeJSBrloX.FJakx.J9M54N','admin','ak_9e468188e6de048c','2023-10-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$8OeL2tMnP9DKTqaynmcUa84/R4d01nY71OMx9Osy476NqspLyTYiF','user','ak_4a593798e7f98ee1','2023-04-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$96lU4t8niYqzmJ/F38hhmtc6xr9U22xEBiUTJnR/QzrEuTqkkYw0L','admin','ak_6d99e48918ae54cc','2023-07-02 10:07:00',NULL);

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

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


