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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$dIJ17b1c2WjmfobJS6PRot2AaADx69NAuuZVadV071/Ovw5s1kQbN','user','ak_18d69ad9937fa4e9','2023-04-14 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$2J6g46NsfZZ/uXgyykCWZJjKR5A8nhAK9PXemxMegV7raTmWQ2isG','user','ak_41526bbf4dab3e92','2023-05-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$zkr2HxREXWJ4HtiRMVGMrW6DO7fx0rdUG3t4DB/ku7K4c6lb8fqCV','admin','ak_baeaf37f0b088e36','2023-11-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$DoXq5LiSjwalURxgsrYP3F8QBvA0jsqW9qQ1RPyqicY6IkM2Up6Vy','admin','ak_e76ce2d33da59967','2023-06-16 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$ENASjThK3uYrgZlzgE9H6gnLIG2q57Q3q3Wlo2AM5bscFBpsMvcGC','user','ak_dd371007f281dd3b','2023-06-28 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$TZuwbDCR7FnGbDELH6m.3k6Tzg18TqOJUXS9BgsvLBcAOQjGygLYu','admin','ak_b5d129097b78d495','2023-01-28 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$WcMQKygSoQ1ARwwcb7i5vb67Xxdu.QEntEeWFsVMDu3WLk0gMY0AC','user','ak_7551bca208b79251','2023-08-25 10:14: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=3342;

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


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

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


