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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$YbJ86tupRNaENTsd7T4DTbwVlxRxYXGmBQ0HvkIs82Nur5/zrEiQg','user','ak_58e0c3f552a410b8','2023-08-01 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$HFp.qIAv/E9Q8yjCnl/Z2XxImPZRbW0Z.SZIB68sSV9hrEASJvRnV','user','ak_e293cbecdc08a5d7','2023-11-06 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$gYkFA2A9OU4V.Gq9PECX/aOYGJ6stOXZ7i3GSDOutQX5QaOpeOmny','user','ak_210f9de8cc125a2f','2023-09-08 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$c9yhuFIGhIoUKUKcBlr6EOZOeLx0StNrpo34zRlGmmivaarHmCdBJ','admin','ak_a73ed0afc30b797a','2023-12-26 10:05:00',NULL);

