-- Host: db-master-8.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=20103;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$rCjQTDb5Bl0NbNCknetgeS7Wj3WTXf23K/FFexQ0gPgIcQI.FPT/L','admin','ak_71956c951f7203de','2023-07-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$CHKmkEWYE9eEnqNjpMPDEQ3PI7aa5QXCdZX.ciYLvy.1O8CdidFKx','admin','ak_bf57075a90d04c44','2023-11-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$sG5OPygwzqH9qBYNUQ37dwjBwZDVej7IB3EuTpTltunef4VyE2.Q4','user','ak_3dffb9a2223fa459','2023-06-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$M777vHFSwgoibAejFWxOTqzu7oDGH/4gbJmlQoF2g0bnbIu6kcraR','admin','ak_20bee0f7b7170a00','2023-06-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$7p.u0vLZfoWrEV2eZKhevv9rg075onYktzk/9Vw7Phpc10eZ49aFs','admin','ak_576b181ce79333a5','2023-06-12 10:08:00',NULL);

