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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$vTy1z9a8LWp6lgxIZcbz.e7KGTyseHg5KiEL6I24C8vFmskhQuBvH','user','ak_9a86601d7c77282d','2023-10-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$.9NPlGFH0pw80f1Bsw3JTC1jGtFFVxWfS3/sJ3SpFrnlN91DLCIkI','user','ak_9dc30a8662d54b34','2023-03-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$ER9z/zWOH2nE1ZmoSfdAoOqiIDnaQQ53nRGpGVga0uII1dFZJbucE','user','ak_81ecbf9fe54b730a','2023-11-22 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$WwIu6O8xT6qMk6Dcn.uDTMpNgB30sqdtPj5uIfJ7tsnMFQtlmq/L/','admin','ak_2d3f4883c6d41eb8','2023-01-12 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$GRrK2N40yLSlRtanl2Q90RT3XS79OZrrUWrU0O9xDActXs7CxfUFx','user','ak_568ebdd8b418195e','2023-03-09 10:09:00',NULL);

