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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$kvnxN2XydO2QOMWdFP6Iy17v1VbRrZf3.sW9d80uZtEbBcHxwP0v1','user','ak_95475c46b3af0f1a','2023-11-28 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$t7i/5yyP0./DyLNr7wg0Bm/hvfSzPTTbk3PxWTP1HQTH2U1r5hpQy','admin','ak_263e4770d504ecc8','2023-09-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$/wCwB/KPCya1lO8sKGKBwDFTB9Z8o54ayHH9thL.KCvqHI3Son3GG','user','ak_44d7407d488e1898','2023-11-13 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Ie0geD/eHFuLBItYNe4ZpAxSPV..qPMVG58qNqjE6I8xGue.D.Knb','user','ak_617b5c774c25dbe7','2023-04-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$J2z8ykZ9H/9mAxtx2oiikzseTZUlMsL2kCiXdjM2kxHbLsjPL9Xwh','user','ak_d934b56bda3dcec3','2023-02-02 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$7OMv4sJKkjNNqPtStWd8/mkynUPdk9dB8tCrUXJAeMKB60dLx9HTz','admin','ak_436e0aef6c14c8c3','2023-02-21 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=4016;

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

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


