-- Host: db-master-8.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=10714;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$QVDxVDgakxmyDqwwCSfKtAqYIAGB0QWasYvqi1b2b6z2V/NiMrE1j','user','ak_1e185355f069580e','2023-10-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$PThPNXO.IB.bLHFUNwhWKuYX.hlok10QGT79oAplqjgVuKy0TANdE','admin','ak_8ff61bc0a3aecf3c','2023-09-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$k7EdYfAfRvo2kXNRqxSpv4tsR494.VR5WHLiixh.gHcgKCi6MwH1A','admin','ak_af396fa12e92f761','2023-09-09 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$8KHmO8XUjgNMiFmjgCwOALS8t5jfcXrxfjzPKpaqSlzaw9YeD7maH','user','ak_5e0f4060ea12591c','2023-08-19 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$.uxVYmeDz6OClKbTYoDgl2y9coXiuenmJJ9LD2n5TzaJS4JqmZ2SC','user','ak_025b427e4099f7c3','2023-11-03 10:15: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=2469;

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


