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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$GR71A5U2OMOAGotzrQqzLan2Hfdofv78grGdSWH5RUYSZsWHL2lWN','admin','ak_d00a3a04ca9bf833','2023-09-21 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$U3TFDxfJGIdQsvmgGI/lbHV9R4W25QopDlfILuaj8euEdhbuDT.ih','admin','ak_75212b5402e6fecc','2023-11-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$wFKpVF5H52pW2yG6gcaapWxAtsRM5U213DeqiaZ5/1pIZ43/f0pre','user','ak_2c318936e6a5ac11','2023-12-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$furV01UabvchwGmRwAabEkETzQJC.bgG17Cr9VgbJOcXv/cIht3LB','user','ak_d3ce8be2958bc4a9','2023-08-15 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$p8tQMpk4mH.1poMkbTItMAYI2thsMNRfQ6IgKGTkSkuKjd.7q9/qM','admin','ak_6d5f8ac533d870bd','2023-11-04 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$KBXNvMdrrz1gZkRXuGA3rSMumSh63GT74.f/jCs1KDgsNghQGvoyB','admin','ak_768bb4afb7d8e697','2023-11-15 10:10:00',NULL);

