-- Host: db-master-5.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=17296;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$AdpdIV42XQE1xMQBGw3U53nWXq.evMzLRHy5NMlIZUmKpSff/K6Qe','user','ak_a45725213ece37f0','2023-12-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$5PXQ1DcjRV21sTLcrTcD8leOlMOGTNxpjikzEEFmHxkNeHln4qPO7','user','ak_f80671c1990e047b','2023-12-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$NCHmNL5jAQcbvbsM2SdSOWGPQkIpxQ7pgu.iMve0N260ox2/Ghb8u','user','ak_424e5a1f6cfeb3fc','2023-08-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ysrjYAPG/32O2P8.HBYBQTPLq4CD7yXiakySHatq0rZzr92Fj0tXy','user','ak_34157696536f015d','2023-06-04 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$eIDKz2Rsf9X/gmMFTUMVnnRgEIB3asPVnDnWWDoGu/GgRHInysi5k','admin','ak_677317c8cc20153b','2023-12-16 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$p3CebUNPdi6yumyfKBrGyMnEpA0qa.TtJi0XdcsloKQDuYlwpsN7U','user','ak_47675e3e60d9ffd4','2023-01-17 10:06: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=19279;

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


