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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$opiPQu.JP3lux1El7oNOTuJDtifgNkaVUgR6xQ4k8HIg5isRCuOts','admin','ak_987520ec6a275a39','2023-07-16 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$hY7cg84kKW3YKFCCdR78ekX.xrXHjF/qz8RDe52RcS7uwfvQHVDR0','admin','ak_896921c24a88ffe3','2023-10-27 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$8X9E0zKxs5qqquRpPIeChj7/YmdEMN44dbrvzb2Q/CJ1K1bxyOE2C','user','ak_e7f111ba3d05fb5a','2023-03-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$Sckgv9J9NmdmQqr3/zWTl3w9o8vMXWei2l.V4tgZntmmzrJxszB.e','admin','ak_fac07c44d6e56060','2023-05-04 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$MtherHanAlq/tplOIX3L0Siw8mGQ91f0MQXhSYnJXp7BRpumB7lKD','user','ak_a8b0bf52b268778d','2023-06-05 10:23:00',NULL);

