-- Host: db-master-2.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=12980;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$7cJfN.t.S6e9H4fFMsr5yN98hzM7ExW/ZjsVvskrfUCnsc97HPcI5','user','ak_a6f1f8b5cd79af4a','2023-09-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$/VwHOrWSO9BMov9v.79FLN4EiVkRUjy/6FnP8TwZbLyXajXBZkiHs','user','ak_86c5c7fe70d627f2','2023-10-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$/8Xv5agB0jkEtu2rGfVKZsTwspn.euhocAoSJIr4LoD.x./eim3v6','user','ak_806b88da5c6bfa3e','2023-07-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$wjwMmhf3aSs6KGuzZuFUsGnmiG6fneOOttj0t.AvhxMdPNA5my340','admin','ak_18945fc4644a35a6','2023-02-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$CCHrB82w0xbMz2QitTS/h8WouMok4R20HUs4gqS0Xp8RMsDQWfpe0','admin','ak_a1ca0a048e5eabfb','2023-11-09 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$uvykCO6TuidH07HFIGAK85V2b3Kg9Iz2Mu60Om3sPCPYmLnbbeevY','user','ak_c8002927c7ea9098','2023-06-27 10:02:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=44020;

--
-- Dumping data for table `payments`
--


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

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


