-- Host: db-master-5.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=25810;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$1qul./HqlMko84xZLaL1jyPbQP0zBlYbk8CL09NPjCO99S01j0HsT','user','ak_6fc1b012b39604d2','2023-02-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$XC42COEVgWeROdpdXq8m468z5ixBZ9nvtWvFbEZTwg8jnDJGFI/f0','admin','ak_3191b559de3f0278','2023-02-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$MEXl8A2kfGi5cimI990V6/IcTsDSQwlHOREx.Rev88SwrczXjtmmT','user','ak_68a62959441266cd','2023-03-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$kqZxooiPu92yhghP0XqrbuzWs5O6kZLEp35RG4N2i649qySLBC9fJ','user','ak_13bf711292aba7ea','2023-04-01 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$B.fX2vQfWlCvhOCI2GcEd2UzEqdea2/963oX4mRk7BZeU29/a2jpE','admin','ak_3a078c89c49b2370','2023-11-16 10:13:00',NULL);

