-- Host: db-master-9.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=19193;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$jUCkYlC.Z9u4NQIOnLBGVUuzQ5.S2sbC9CEc4G2vO4B3Mh4tIN6nk','admin','ak_9be45e45d562cf5a','2023-09-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$2n9iv29hOsZvjAjolczGOv9TeQZnKZ.h8geauf1iPS1ZGPzirK2BH','user','ak_a21c731f42ed746f','2023-09-05 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$LxYDdalVeJUYGixrYVf8G08CYyVgh3.XfqGwBlSg.etc9lD7qSvzQ','user','ak_8464d459dd170578','2023-06-05 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$n7mKBS5k5rrx22BlBpc6pab.HEROBWaYeilTrfhekqTb.llZEIMIf','user','ak_4f3910c0fa90eeee','2023-10-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$3/WP6bMXK.fnEnRu0voAfUyeUvW0Xrz9Ial75YU5vJdYVWAFZgNaQ','user','ak_244b84d2b1d12919','2023-05-03 10:14: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=24296;

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


