-- Host: db-master-1.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=27198;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$xISFwWQvgrivSxW90R4T2ENZ5M.xsX0sI90Nlo/kMOZwbyv2TqMdK','admin','ak_fbd897b909d4b00d','2023-08-27 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$sBYhzkHEoAxpTAF05qze5UfidG5Z.IDEBZTSrrq6xx1r4Rcsr6TcQ','admin','ak_deb8dc97b4bdd485','2023-08-26 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$VK.0Ncop/0zmD/ao8r4DrPCywh7Nl1P.Dohl23lbQxcOedXWaKZ/J','admin','ak_ac6f6901c1cd3842','2023-04-18 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$TbgMkGScXIg0O47zjXNsVSbLbPB8xaGz9jxnTODWm23IJhzb.5Lym','user','ak_d38378db1a47b24d','2023-12-15 10:14: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=20723;

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


