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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$uAph2wOuwRCt9mXb9.aGEN4D09M8N8MOrfWDj0LbLyXB6luYfkXzT','user','ak_a8630e291057a278','2023-08-06 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$KjcP156lhoHaZeCkd1gRyvJIZ6YZWKcK8Hv1UqKlnCJRrPZ1t4A8J','user','ak_dbbcaa80679679a3','2023-05-13 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$1JfONkHnTPwMmtn/3EgW5W5zFxNNSx7/Eglbqteit5nqbVDN3nzb1','user','ak_576e686d2017b089','2023-05-15 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$soRuw4oi3BXGQyZnqGrzeG6O.Y9BwyehxwF1/IhHZx2ycmJBie5Nt','user','ak_ac1f72788192059f','2023-07-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$a8n2putl9UpNqd2b49D43pwLR6u7dwWNg9f0J7./C0ezVYBe9cLaY','admin','ak_7bb9709ca16f7787','2023-03-13 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$u7JYPkP32Vo0eRH6bJCPlWVAYre6Fn2uyNMIkkuQJZSWwwvIK4dOD','admin','ak_6ed949776cf130f3','2023-09-11 10:20: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=25243;

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

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


