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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$dhsMXf0BN7hw.sUHbxdju49Xq9rrEag95.FKQ8exh6w9zA8.J124Q','admin','ak_baf495073c8e1c8c','2023-06-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$7JA.lN.mjGSCQYEu5dq5CW2PHy2Cymu1/oy/bkdFQUk8msi8jE.DO','admin','ak_631e6aa76f86c27a','2023-10-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$F..3TfBRlbWRotpWO02Fv6GQZgVN0qUh.1y4qHLs3405ZwIs6fj1l','admin','ak_e8d40bca8ebc8c8a','2023-05-23 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$s7HhaPyhSR7GBB44AW8sotHwAqvqAVp0eBbJW6sFE3pa/gR9W1J3z','user','ak_079befc4685ece09','2023-06-02 10:04: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=10369;

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


