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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$9I6KuqNnr3HA9Pm24C1/DjazwrWpySaYRAq3twM7fkmtxiSsa4jrw','user','ak_acbf82b227010a84','2023-08-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$R1EsB8NvKqosJAtkAjFeqiwz0TB.Bx1V4Ge93XRCvc4qtG0RTYwfM','user','ak_677c6343a1ce5a45','2023-12-26 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$MFb4Ddpr73oAZ5bwTt4u5QO61Ztt5mzFLk/48eHuhpuIF60dHJXux','user','ak_a91debf2f35c4db1','2023-09-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$dgo9GID9XKrULzgHig6Qd3DcKPS.Zr090dioiiRc37kLfa2Gg.6Sv','user','ak_d2e15c779f10515d','2023-03-23 10:14:00',NULL);

