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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$UR5w6FvaDSJFsbh1oH.emyYgLo1shKSxcNR42L7pJEfl.8hpG1Lmu','user','ak_d6c4cf0b41deb254','2023-02-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$qHrTJkTP58JHrNsYR7cYKgg.zyaFqmkgSa99PqHTr0N95wSVcl.I6','user','ak_a5bcdf6e992b0196','2023-05-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$kxoB/Z3C0kN7N5KIqs7CLHsMsmaFUv7OcTJbo6FXRMMC38Ueqx0EI','user','ak_8bee3a93d7a18579','2023-09-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$fNpQeYNmSEs6gUlFxjS577F3RuTPv2FhWEUunF/eT1KSIH8PoOGQ.','user','ak_ca15dc874e387230','2023-09-19 10:02: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=41692;

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


