-- Host: db-master-7.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$eqGNU7R4bBsSD53bHRyO/4W/hUTi3hOwGxouzBggp0dXI9m7XSh6D','user','ak_08de2e75ace8f0d3','2023-06-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$2ReFPf4u7727Y04eYY6YhL06u29vbfq2MArrKjengDyHwJD/RP4vA','user','ak_3e7f12b1c63e562d','2023-05-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$LhhREnLxjkz5cFKMaSKiy2CITMxDhkLzwujNQSJb.6WrYBC2YWGXW','user','ak_11ab3ef43428a4d9','2023-10-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0EP3l6zQCPzCAOoO5whtsX6UOQM.xAiKVbChOCU7.AQivCABPI67Y','user','ak_3455ec094300f5c0','2023-08-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$oP7itG3KhDZeKznetFOXh8gx0MP.PUi3PONoU0Bvwigzt83JYBpTP','user','ak_69768aba55f94f8f','2023-04-16 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$OwjtFC9/5GrE3FW8PHALxHJuJRLj7qnGI53PmxmjAkbiU9YPf1Gto','user','ak_24a64b8ebbc70abe','2023-02-19 10:09: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=36492;

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


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

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


