-- Host: db-master-9.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=1750;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$JLaCE/vCFET61wybQOS7zx/R0DQNo8XQMy80KueyEcw6qjn2umYoU','user','ak_c13e545e2c2af561','2023-04-09 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$/Q62.LbiLReTChmp1H3h3cPKRUJOyapV7K.jp9m3znM74qnmocx7c','user','ak_065b7894f1e5eb9d','2023-12-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$CEWBGdBmkw52CZgJ/cKWop5dNWWtqaAZCRa3K8A4Kwil73riBL/o.','admin','ak_de2db408fb956a8a','2023-06-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$R5ebFqGVIeMH80sB2mP0hsnzAnb1jGWBRs8v6xrC/iEx6WDq32wmW','admin','ak_1e3a866157dfae54','2023-03-28 10:10: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=20037;

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


