-- Host: db-master-6.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=10351;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$NSm6VIxKLK17w6DhTmWH5iKgPPPGSXZhJZsixCs2RGP73Uyt3t39i','user','ak_4c2370413b45ae71','2023-08-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Nl3KY6KN2ZVEKDEdWLX733hCus2sfBAjOGhAoM28N2BUohkdHxS00','admin','ak_5104bcdfcf41e4bd','2023-11-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$RMD8pduchgF2PvkTGdDGBrXEozZJAVTidTcqxqbBBtWDt/.FgR.Zz','user','ak_1a6234ce78cd79b0','2023-07-13 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$vdeZn/p1ZvLYpeXGxtL8/Le1erSz7tqCVUFY.VxjchE1gCYaCa02r','user','ak_17de2a959f9c7fc9','2023-04-05 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$/gRhbjcJdTSN4tpGPIJY2aW2bP0iZG/6z6RfqRWoZOYiRuxSAONk1','user','ak_07cb2033c4ffdf2a','2023-02-12 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$4UjrDpr/zBj1VVusfti9HD2NdwNZ0/IAo.6jAfPyhdTokEnm8JxT7','admin','ak_c36132197cb08643','2023-12-01 10:09:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=6426;

--
-- Dumping data for table `products`
--


