-- Host: db-master-8.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$5gHMevtuD44GGrRrS/wGOZQNHiexbe/.gz/K6F3/bnwt7v6OPSTTD','admin','ak_8ce9a8f146707faf','2023-01-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$wv14nmFM4jSxWnImqu2zsoLck7tAPD1lxRBlTv5Nto45o0zSdTXpF','user','ak_1cacb9f791ad1663','2023-04-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$mEGgXRwoWHFHOV1XzCtBNcnke8bKiOMKDQ1P/ENciQ8Bi4luBhch6','user','ak_d70b66932abcf91e','2023-03-21 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$ZDdHG7/R8IIXsvYH8JhAOQ/Z1D3sOb8uXL2jOFN/uf06wU41KGlnh','user','ak_b55d656f05e06c11','2023-01-10 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$jesJ3opibRelUrKIyuLgDy0kfU6GZaiW0O0yMV1iWyzWkfrVS6hoR','user','ak_fb8429f0e52d1046','2023-06-25 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$dX4pFn7HvUFHLn98tw.qOj8dbP2uAGafVTYUvzLYF/P.DdZEbRImq','user','ak_8a733e004f5a35b8','2023-01-12 10:16:00',NULL);

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

--
-- Dumping data for table `payments`
--


