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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$PpQPs8HvTy7TDNo40ugNyvYwA6M4l2mkYi2H49ED8KtAkystWJMMk','user','ak_c411e0f5382d5947','2023-11-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$wsM9ZwkwVUypfR7BUaasNmICrhy2yhlbWT4JDrEOH5/vvQTtFKWjC','user','ak_385dd875e719ba7b','2023-07-17 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$XS8YrEdqO9ifxaGtNi9OABW5Ar.BZEvAsWTFuKCThCd4VG1zdYBsq','admin','ak_dd6a008b8653e8e9','2023-04-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Xk6PoXcWfC.gnGltEenf.gojwYYFOmPYbwQKNtdG1PHHb/JLJQDMZ','admin','ak_3d7b9789067a834a','2023-03-01 10:14: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=10154;

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


