-- Host: db-master-4.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=46062;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$D2ovK14sqXnToKDhwSaE3tYr1.TBbgoUPrWXOxQybI2n9Dy3pv5hF','user','ak_50aab5d44201328c','2023-02-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$N0sCsm.Yt0U3xdDmkTmc2q2utEHZhI7ZbtIoME2Sedje/QRiPoBDC','user','ak_828e3751f266db12','2023-08-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$TpO9jnZ8cufKlz/.OXFMo54si8F1C09NNZT6vZJWSixS7HFlNnRMS','admin','ak_db5d2527f8fe17dd','2023-11-26 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$90E/7.4iBZYiGlep0U4XRG2T2E4CtX9SDlbdp7X5d9gW6HXfoxWL7','admin','ak_91ac289fe1261010','2023-10-19 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$PS5fMfkoJb7kJXjWqqQPeAzAA527hQWU4iTpUigQkoEZ4kJOy/q1m','user','ak_874b895ed3ff332d','2023-04-13 10:18: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=12899;

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


