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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$bGLDu4YsHQsq5xHk1M3foR7Tu/99H7kxd1YcwY2SOOLmXMw4Wdq4J','admin','ak_f536d319472b45c8','2023-05-01 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$G.nlDI92v4TyAwe0mM4LSrjSuMEoLIv4TSXsogxL.PVtlJ2n8x.vx','user','ak_c15a309776114256','2023-01-09 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$rvlVSF2t0xpuyaOhDHmkCpOFWfREvuQTnMUKpVOIq0HlQeU9W40mJ','user','ak_69bc0e5a94fda46e','2023-01-05 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$wcaLhnw/2TADQDAM0GWqFXX5EGgrtQc/8cRUr4RYN7ixl80qpYqc8','user','ak_9b18912a33ba7ca8','2023-08-03 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$VmaiX681Q4eonSd96HPI8KaSdDOMk69XTiLqGkZWmUh2bgUwbkYaI','user','ak_0e12fb8c595368dd','2023-04-26 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$bZEiIdmfywoszRYn0gqugyJbVuq7ayp7Aurb1B8Gl/3bBMZHnYlvx','user','ak_f89a17772ae5ec40','2023-12-14 10:13:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$xUOjgdTA0kd.250LFyCKEgVR45DPgK2M9bW9j43BEH06Aq/ikVRZW','admin','ak_4efbb76ecae84328','2023-07-10 10:04:00',NULL);

