-- Host: db-master-4.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=28834;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$cv2nYZ/W7bOgG3D61IRxVQ.gOUgfV84U6rMvlMPnpOoh/kHhmsR7N','admin','ak_9ac8a3ee58401bb7','2023-12-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$46VOMpI5UYYtTYvfdUOIuAV3tYrwinS5RmxkQeNNY2E2jw.ObqBwW','admin','ak_800a9f403a1cc869','2023-07-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$o9wEpeDzX2FYaevLep/y6j4WnWle3M.Z/MfBJq9VbvTmzhVsLii7q','admin','ak_021bfc21d936b4f9','2023-05-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$0IHh.cKPI0.rCiUEcnFO9yuo62LBbD5IX.RFHTLDe8c9QwlqljITw','user','ak_faa4e4b3d4aa7cdb','2023-06-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$1EP1L27FxkfhqHAWNpf4i7RxOm.pRWSMsgj6oEeq8F2pJYrY2zgyY','user','ak_83d420859f35775b','2023-08-16 10:17:00',NULL);

