-- Host: db-master-6.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=33949;

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$59qts6bYdOCpgWt9mOwLZu4/dSju7GgaKYv241g088GIo4DlibwyV','user','ak_2d2a31bbdc23ce56','2023-08-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$.v8Cl1AePvV5wlC5FuMo4mTq8ZxTl5TwKp/plAXj6j0BSnhrVopZj','user','ak_0429157372f12bdd','2023-03-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$yONq7aGUxtpUS4LaoaaAonyLVsuJ8KvC/Hz24UbPguw02eN0seOmq','user','ak_fa7eb8c348e03f4f','2023-01-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$B4BCC6ewY0cQR4TXVnlrVS6RGvcrnrVqC1HSPQ/X00jWgGUyVcs7R','admin','ak_fff240633137db4d','2023-09-25 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$x6SACNVtLIQyD4vRTC8Rf1CFVJduYVt1OWm6HxpeWtlmVYfz3/WAu','user','ak_b8c0535964d509f6','2023-03-16 10:11:00',NULL);

