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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$6fb3tPuZwiUrqenZemlJBmgm.y/m8YIEMlH8NMxi82CRHerT1Jzw2','user','ak_7e95c3ad9664879e','2023-03-02 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$Ru2zTrrD1lQZMqU.wYgdGZUlKiXLFqyvfYLnEmqhkKNdidOBZcGfR','user','ak_930b63c4373e62f0','2023-10-21 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$Yz4/jimNLv5vBNnV1450IFGtFNSLFrK9wuLgdvwFAv29vn7G4Caqm','admin','ak_fa7612244d3aa18b','2023-01-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$kNMglNcv6o4AbWjUA8jrdki2ZISy60zC1JgTbFKgi6lmkbfXZnHI5','user','ak_85988ddb0abdbe96','2023-04-07 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$xt6sfpB3dEqxo6dHnEyHf5MS5F8GElYEDapKBInXMWOL5NdJZJyMb','user','ak_393f74cb01e22a55','2023-02-06 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$W28SeVlJDHtnuDcQiIrjnUZVX8uQRhpMHD5lFKuEZxelHMr2QaXc/','admin','ak_7eacd563d1e1757b','2023-01-18 10:11:00',NULL);

