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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$9b.U6/6XJKLGzKTt3dq42eO3zKE07Jr8Q1Ma.3y3tI6Sxllal.Ri4','admin','ak_c2cbc02c2a482af3','2023-10-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$KnXf1uvGghC59oeSvFSYXMo4E9H4KzrOarStifyjTDHGrlmsI1DJ/','admin','ak_99696abf5aa6da28','2023-03-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$ErOICG.HZak1sSIAEcht6tN2MVt36Q3jJZjQY/ejbv5BIesA7bin2','user','ak_08d29a74560e5f36','2023-11-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$KVwlRhNXGgKokruKECjCnj1oAN5EVWoyUb7sM15Eko7QN7IvmXiec','user','ak_2c2b5dfddaeff0ad','2023-02-25 10:14: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=21646;

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


