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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$qm/vGZ.Y4f14W/BKhUOYAESii.31qAOa7NHP/.e92F92uGgvNQM5O','admin','ak_2afdee57d784d919','2023-05-12 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$RLNAMqNS/eaOhWG7T8z96ieFIxs0qmgiCbLlT9/i4XG3QrBI5n1Fe','user','ak_b3bcf7d545c5bd03','2023-04-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$JDCelflha4xX3nSfw3AkX2RU88g1cn9sgoOsWUocViV/Q5ffYiZM1','user','ak_0be0a47d22aaf4c7','2023-11-26 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Jr.Dy9SgcSrlM3y4An7kKgvBVaV4KiBkLbrxiAR2sJk5dhrGVe3a.','user','ak_4557172606190fce','2023-08-25 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$NRAF8wllNVgP5b3o6AhMbJd7UELAtnYLZ9/VsQfUpRFw3QxUGz7cD','admin','ak_2ccf82a428748623','2023-02-15 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$fe3sXSTgbyvFAJasP09rRYlM5PF8Gbe0iQqqJ2VBIMl1bVAf1Ox7D','user','ak_988896e178a176cd','2023-08-24 10:00: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=26477;

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

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


