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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$hGlfhsijsV23u3Z1M8EHlpTC0HZ2/YXnu6JVw4Xfep/7mN3VSfaT.','admin','ak_a7ab65506c4a6baa','2023-10-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$eJ0cYKwgz7zK5RllK.S6s8Z8GUUAZEMSX93BibL7kHkwC7KJPRmB3','admin','ak_fd3766d0aca1fe34','2023-05-13 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$e7m.F5uJxjHg5hWg4W/Cagmj3gDrEvoQVVi19RoV07tCwdOUjSpFr','admin','ak_95012d2efa85e826','2023-04-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$sOeMlZ9VvbFn6QxwCSrdtoIxFlWpTI7pBh8BMdbFiuPFFtQ7Kgsgf','admin','ak_ba9918085bc70eb4','2023-02-20 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$8NVMNzpywuaSWdQSKkln1V7/wP0veJOmVJ3O8L48Y00ltBccteM86','user','ak_730e8d27a19870c4','2023-08-28 10:16: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=27700;

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


