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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$4HZzgKfRMu.ZauvaHjQu8gI2z3U8f/s2/Urq0N.0flBSqxJmYAQp5','user','ak_ad9c8ba8977a5c99','2023-08-10 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$8V76zzv36/3Bg5EvjSOVL7rW2Pp6KwDAfEGNIV6RY1YO0EwSeImPv','admin','ak_b0a4c73305d1a013','2023-01-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$RWskqmrKWyTS79jZzTI0Of1TcOHZ4bp12h1M.1Gz.oCacRVCmWWqQ','user','ak_db19d57a1427864a','2023-02-02 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$QkzuehtTlUrLWCQpvnPFgc3ZyFQymu6E2XAXkAxZ3OPhdML9ymrWU','user','ak_4d44a1f9a1810e28','2023-01-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$Qhq337/3UznJXHYvCahlGwvEn663HyMwmgEN0DTLWdeQWrzLQ5ZkU','user','ak_7eac00bbb7b33637','2023-12-26 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$rJDDZuJvli3d4KnYvFFHc/JzIWRv2xJyYvqxY2nUx9yWec/ohhF1v','user','ak_e6d89d5032a9689d','2023-12-28 10:14: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=11560;

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


