-- Host: db-master-5.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=25318;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$RlphBvq7Pge8fF5cXUD0yvOwFudRIstcz0D2LwFn9.pe5E4rcA7/x','user','ak_b1d7fa85cd163bcc','2023-04-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$2WYRCmhI8QWEpiEDUzWRXJsgPCIY7QzjK9Y2UdCgGALEv.7eDBxS6','user','ak_575a82c0be474ddb','2023-02-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$uel4KgCQ20N0sePOPxzlruqDOsTPUeUq0BBMjwz6w421YfHrRKvPl','user','ak_a9aebaa23dff0dba','2023-02-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$YYWrfiUEfhfLenGqC5HTs.pKpus6/gglRWf/Joqu6mg8.K0HfbkF5','user','ak_ddb172ae76fcb28f','2023-02-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$HGBPkaSuBAadkgmKgEjEZlirz2ljW/lEYki592CoEc/kCeQ0gakS3','user','ak_7b34aa1514d70bf9','2023-06-20 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$XZSL9zqpnwKctlroNK9gObWs8ZwA9dUXBUpnPG2/Bac.9Vqbv6vWa','user','ak_7ee2614b8eaccc03','2023-06-01 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$JK6lDGvruDlFVZlX7qW33w3HW5vAhadoQcNzsH6tvm3yfyLddE5hb','user','ak_622a7d47428ac5d3','2023-01-04 10:03: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=22792;

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


