-- Host: db-master-4.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=42899;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$Weju1ZoaMdaGdCX9cmmrvMQP71t63T7jKPQmOPiEmb8pTwP4LS.3.','user','ak_6b62f152f6bee233','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$KBVd70X5WUta.w7TDPyVb0vQvOsD2jitKxzBS6GOKjd6xMBvMPAKG','admin','ak_21aa3edfe06ff96c','2023-04-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$m.IEV6UdJ1XnbVQgiSYA2XnF3F1e7lHKZNtpPWsN2oxwsi6ANoxqA','user','ak_283469b02f5fc5a8','2023-01-21 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ABZ4W5zzvXxQB8mwhXedN6X3u6A5RgBySSXX/OW7Vheo/z2E8jaTG','user','ak_8f2d911b6bbf6319','2023-01-10 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$kRGW4KAnvbdA57B3aySJ/bdmXyhnDJx4nk8yj0oA4GRG0e3eh7U3U','user','ak_1e07006c5058c66f','2023-12-19 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$Jqdskx5Pji2.eJeKLQwB3OXEOhEl/qiL9.SJY/xab8/7q85eiknBr','user','ak_ac9258bf988f1d43','2023-08-06 10:16: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=30584;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=3324;

--
-- Dumping data for table `products`
--


