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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$UymBkP9ClB5KSBeXFF2luQEheQq9dl1oc1meT.SXzbAZGjriniwe.','user','ak_f36a7501424901bf','2023-05-22 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$sJprhgDV6c.951WE5o.Z.vhZSES4ZDvtDsikZTUlS1tS/mBWX/EZ.','user','ak_a7d8d8b90ef710ab','2023-07-08 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$24PFBn.mWFn/tefej58pois9PkPR8W6/lHaiCiM2zYGsdxpbCWVrJ','user','ak_728c610744700ba4','2023-11-03 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$7QcRame1A4YwbfhjDJ0J/n3.eH3RZjcYBscup9h08QXU74saC8yCZ','admin','ak_75e1ec65462446bb','2023-03-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ixRB1h2BIhmCvEOfIN6FzX6QirkHFeL9Ma5Lg8sYMc9Bf6KSPFMEP','user','ak_799bbba8399e717f','2023-09-03 10:02: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=19668;

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


