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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$DCdD.efNic11SMHI8990rLbdji7t/gX3xBfGFzEkbZhk8VpSah6uu','admin','ak_725f18a0a1cb6c50','2023-03-01 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$qQ9o8NlNluXRhZ2J0zw8ONEK/us4nfJTgKl9y/rzJdOE/dduXnqri','user','ak_18fc2c713c3eaba7','2023-10-09 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$KV0j5dy6iI3XXtY7d.F/B.FChjUrZA9sjVsON3tkAs30aYIGtP.8J','user','ak_57b596d191634bfa','2023-03-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$m1Q0srlxnWjRkF7sWaCl6ZBLVkuwkhi/qSkfsDrqJgFFkdaccE/pU','user','ak_2ffd220a5e1a2315','2023-06-23 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$FMxEKXn/I1VXDU3gUgUME1uDphDfXQ3x/CX26aJ2ldAYvLePwVra5','user','ak_68c291ed42f8215c','2023-08-22 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$NrqlVt.JuwrzupsFcrUzaaxsGNezvaDfJ2X0UsEdisYoRBFdsRQhp','user','ak_0906a6821faa4211','2023-03-09 10:19: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=35525;

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


