-- Host: db-master-3.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$wIFAZNkvEZZMpuBgzrx9NKlORJ0.ryStauK.zZMQ5fWojm8hWMpQA','user','ak_6b45e2a0db9eae51','2023-01-16 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$lO4GCIFgbRUQaLIuHyOHHJUKdQGfMCxCwu4A/5HVeDuCZpnCYqQGQ','admin','ak_2e1b6959848a252c','2023-01-11 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$OlKTMXvd8tx0SK6TgAc1bNWPKKeT0Gyag..pbVfKM4A6xTYFOaoDj','user','ak_eaf19de8a879cad3','2023-06-15 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$0uQEKcCsfeEHDUJO3ZkwUJjhrDw7bxOnzl.jhvWwOn3qpI4zu3MyO','user','ak_d59016f5cf8c627c','2023-08-21 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$2P5oD7daZeH/f9Ew17nIdI45G2GIY20mnhq3B/m0PUVUphxfgU1Ey','user','ak_2a02228104e408fb','2023-05-03 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$ksAed34SDDkW6Gs4AINbWXeeL9/DDTx5JZi8O5F7wKY6WjcWKHXIs','user','ak_dcee51b2711efdf3','2023-02-28 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$y4xOlWDJbW7HfhSCb45I2dv0CuADGcsWHfgrfJRGKP5fProRWfegG','user','ak_c2ee10883573701b','2023-09-20 10:16:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=7329;

--
-- Dumping data for table `products`
--


