-- Host: db-master-6.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$UhI7lBOzarr3.azxnpEM7AlyV0FokzIchXDm/HQc/NmWxMDXlQiaP','user','ak_2be1e2dc89d525af','2023-09-06 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$1gc1aANBEU2pKsXgi5aYdjSLypds3IDAU7KTa5BZb5wsbH1Xz6PXt','user','ak_b16645ede95bd418','2023-02-15 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$AUxcgt5JTqVcnpNACvB0S/wbVlhNgZwh7bANARiQ8PyhB2mFqgxXL','user','ak_cd8932902ed733ce','2023-01-27 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$i9QxFsgooDeyQ99lj9ztt.sjowaLU9l6ZmdIuvTMmKGIWOhgA8WhO','admin','ak_1174dfe230b46c78','2023-08-27 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$AN9mT6Gv3qaGFvBjlt2bmqA1R3z55bzSpp4WJjd5.xCrnoXFh5nws','user','ak_7b3073c6d65def3e','2023-10-02 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$orCpfxe50tglHlHkiI0kBhptve0.fOmIlV2M.l299PTOabfkvK4NR','user','ak_00584684dd467438','2023-11-12 10:19: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=47680;

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


