-- Host: db-master-6.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=38392;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$pbOH2Hko0ptb76GZFpPzmIVTPWGb.TwcAxWDeTvQjEnGGo2OaotGv','user','ak_e5ed428d4381b19c','2023-09-06 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$H16MnXNLPAzZ9ZmpW0JjKZcpxRIGjDPrqfrx/P.K5IrZpt/GMEf2V','user','ak_f3a9835243ecc0b5','2023-04-19 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$MBBpwaruyj0gIk7xGadiArW68PSvBYcDTItpF9uyoarmGyhefa1w9','admin','ak_f2a76221fd0942dd','2023-12-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$DEvVA7/p9uzazM4vtPuYPpEOc1MAJWV4ihc8mMl.wQihmJEaVY8R/','admin','ak_aff1237230d4c6b1','2023-07-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$T3EZedgUYrDwd/X400O6GErt9NK2qde23DsRalDJArhuVY8iQNSqC','user','ak_ef4b65688bcc867a','2023-08-26 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$vBSRzf2vWZWgwt5deJ./EAlrXhX7VMhNXwNBH9HYJOxI6AwybWgWb','user','ak_1740173b1040dcf7','2023-03-26 10:09:00',NULL);

