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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$y5mh8XR3Dodp8Yv6Ad7PYEfOhjV0baPnj8aRGwyry1T4X2oLXQdx7','user','ak_19f8555444fd22aa','2023-05-22 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$p8cu7cNW7/387XwdTVM9quMmFsS3Pg6aJ1pWfj.HEsAyB3.3goOi1','user','ak_c49d63eaa7488873','2023-09-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Llt17a8H1NbCr7TvqvLDLpCZSJEXNd8IZCd7.RyDYvEfLo7ftDLdl','user','ak_0db27a9506b95a84','2023-05-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$JGVM.m9DfIqGwLsdJxhDZdrL5NBC4QX2slGp2TooCsp1YTJEMIPhY','user','ak_054d06fe9023cd2e','2023-12-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$3tqKh9De.9c/OQQc8PjZBKCA9AYzWyOPIWR0xKWscQoXg/GSAbsHS','admin','ak_e2434fe5d8b20372','2023-07-04 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$nN4UuXHqyt4wyM15/79a2KSiaSsvS8Q0uKwCoqawQcBiawrx4tS00','admin','ak_080eec6e3a6882c0','2023-06-18 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$nkJ4z7dJAwvzvnUBkepOv4PnxtgTuXpaQFLQBFV7VGzaG/2Ib5yRq','admin','ak_62913b869cbddd1f','2023-04-21 10:05:00',NULL);

