-- Host: db-master-8.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=32838;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$eQvxghPJXDcZkRY95ldS8pQSfkv6Mc6FwPJ.0RT1O8wON1H/a1M4b','admin','ak_7227670ab3c357d3','2023-03-07 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$zhCsLIZU4/ta2tXXUqXr5B0edL9V8xHtoaItBRsMoRNGeyxYkuTed','user','ak_7a4cb5f64253b4fe','2023-07-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$wgCyR3mgnTlzC4m4vZ6JIKlTAt/RDaCihVHlyyFmOvJgYl.6qqpGE','user','ak_9b58a969b33500e6','2023-11-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$W95DVsSWNSXq58j1NhNkzOtWGHsks1MrqC9piRHUNyDBEoduwq3BS','admin','ak_7e601bf07cdaad39','2023-04-08 10:03: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=42332;

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


