-- Host: db-master-1.internal    Database: webapp_db


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$R/PGkQC1nyMUim3ZlFSGR9H8EPkjZ3.8sBtbet8kvT3UUvik/jY.w','admin','ak_75aada1d1324ca4f','2023-07-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$HMm9Aqd/iyHIhwCVC.YC6sQThagHf9BagpkXd/GKTVVwYcCpA7E3N','user','ak_69850f95a1fb29e0','2023-05-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$V0qbTit3LepXCYbb1rD.v3.vP/CpZjzudzLDdMQL.PN2I/1s2411F','user','ak_05c8b5ba40fbb89f','2023-12-13 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$N7S0XSeNLf5tVh7pcawTU5GBhrzHzzoUi8LZb6qRaDnoY/u71dsAa','user','ak_eecc2e85be0681d5','2023-08-13 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Jzzi0my9Fu9xRvK/y4IrWiQvkHACkE53Mv6kOD9iEi4lNvhoc5egG','user','ak_95f9ffbe0628e129','2023-11-18 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$H8w2GOsxxRKuQzwx2WG5jDED//DmWOWqRCKmr5wcnTdyGSzjCA70y','admin','ak_3a9c62f5c3690e60','2023-07-12 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@example.org','$2b$12$8Ojm7ks1eRJVaf4WJTBfm81DHHDnkoAkaWrxbwwORjOWH0gs/yk0S','user','ak_d8effde31b3e5edc','2023-12-28 10:02:00',NULL);

