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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$GUBYGz5ymsR1hoXNs9pkqOamM849YaRCii3L9WkqhNoZdtQGFIOq2','admin','ak_eca2726ff166dae8','2023-02-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$Xac9giMUokOYDccGzOCgiOIFjwvT4gJHqRroSKWKorydDL2KsQA.n','user','ak_fc8e374c30fe0422','2023-01-18 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$k8BT0954ZUWxboTjV/6xe8YzPmc7jyzxK5/QBpmwb9hIX/iaPlBPE','user','ak_cfbf360b2642d8ec','2023-05-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$a.zU6Ihe8Q8kFWIy6exilaW6U5E/hsf2PRKMPMtWqojtt4WUHHfIH','user','ak_64eae4a5aa6bbe0d','2023-06-07 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$E.pQsy1nWwMtiB9JvPxV9mNvDvsCfjsWF79lNnPLIFgjIjtefvsPY','user','ak_830bc94ec9eb2ffa','2023-11-21 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$VPGdkMEP8epxaqSUzqBleGCU2DA4v.tXJZSUBKFP2qjkboXKtPQdU','user','ak_fd3f7e5682d11307','2023-11-26 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$zDwbKAcTIDYLHkNWVOq4G.sgdhLpjyP.gHXLhzInMC5R.qMBo0w2e','admin','ak_df03656270e39d06','2023-01-04 10:15:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=5686;

--
-- Dumping data for table `sessions`
--


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

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


