-- Host: db-master-0.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=45528;

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$aOWlBzx/aNCcmSsnkpitzp725X5qJRC3CjKHpnxDOBEZkUGtOW7kG','user','ak_e4914a49d57df48a','2023-12-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$8duFQFqVJaK3t7CL7xLPud7II8C2OaJvO3Ftzn7kaAGBMKc.0NobB','admin','ak_bcd87494223abf67','2023-10-05 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$5HsRkSLqeQuCxb2XOKikExgPgaS3GBg22TywLGlpCJ7cS4ukSEgsM','user','ak_9cb768fbdbdb0a37','2023-01-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$ZErJaHLm40nEktnEYzpqUdmiqvnA.e9u6CyPDoaEmznVbbYr3420E','admin','ak_88f16a8c155613c8','2023-12-14 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$E8RJs/1NhlUtBjJeMA1mzRzElpFW0lqnC0MgzD1cXy/RWyRAtcm6o','admin','ak_ee317b328df70d1b','2023-08-01 10:06:00',NULL);

