-- Host: db-master-0.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$4DfEzUZSn52BJ67SpRJWqEBVxswUbYRj4H78Cxhg.y8p/YXuUbvQO','user','ak_ffb244ffcd2ab0f8','2023-10-19 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$SNQh624KDOZfZiLVJKsbZ.VFdnzJ.BdYZg.p/wfJLj.0m.eRk/dMs','admin','ak_4ec973184928e7a2','2023-06-19 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$FH8vfyQTOjIEcnRAIEHxJLS8qmEeBTeXQHtT73kpu2kyzTTy5WgYP','user','ak_71fb6564d4582dcf','2023-06-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$WfjK3L.WFHStKThRKJa0w2MtRCBbodE8yIVGoH.dETO1ZFI/c/DJ0','user','ak_8a9efbb0a6844eab','2023-08-25 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$F51A6ivbLdmsIgENi7bZHZ.Zn5lVd0XxNWfr9YVsM5pE0YkNipP/8','admin','ak_0ff56dcd563d95bb','2023-06-24 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$WQrR4k1BTpLZB45xzsSFuh7.UXpULiN721px5zcn45.zwMbSpZu/o','admin','ak_08813ac5f3aece74','2023-01-19 10:23: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=30907;

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


