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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$AuoIQo.TFiwkaZlcwjBug3HsFkeobRsdqtlT6dsBkGyyHHCQRwEbL','user','ak_27aed4c04be716b3','2023-12-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$gv7hDRUKB/Nk2hPyQQYXR7lNmoOrLWSN4FH29oXtcuKqRAfpCdRst','user','ak_8f0a3ce3471db893','2023-11-24 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$HmhQYbCjbvgpAI6eG/UVM8pKUTCCKDUGXj6gF2M1sT9NwpQy5OEzW','admin','ak_55c0274f6657c0ab','2023-05-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$.HixRIr9hEXsDypt3sJJJ9qa3WBB4hBR84Om7MY3oQOGcLvOQ/L2u','user','ak_4e05167e9e131ba4','2023-12-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$jhHw6eqEJJOsChbRWfsoRs6HjBUx92e4T2QYO.pbSxTX6W.MztF3s','admin','ak_199e78fdb0fa87b4','2023-09-13 10:08: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=19480;

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


