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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$PKF66zAHZVJ1XgdbWj.joKLIiDFPC8Y9bqzvhnMdHCm/5p1n0dvp/','admin','ak_49df24762977d451','2023-07-04 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$La.PSOFFzdllXDLiKDg1H0jC7.eoWL9yUVOkkK1N7VAtDBoHrfnlh','user','ak_2658c5cacd94ed39','2023-04-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$LzvZJW3iiznf99YQynapBV97F42ZlpVG4gwxgu4HmUMZEi0kHUELI','user','ak_d37a94bb73333477','2023-11-05 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$4BW2R0S8J7pmzyW3JbXvVGKq0DnIkQmIuEKxKPEqI1Be8TB9j6Xhd','user','ak_95104cca17151141','2023-11-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$1wc/GPYUYgIaQi0fyshr1yTQMiY4J.2yuSWYn47IX6nM4ixA8r26/','user','ak_8bc73dd8a71637ee','2023-11-16 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$c6P9xbNwLCE/pDVErJ1jdsgA3hiuSgw4azaN.qtjGkNAmQ4ltBfxF','user','ak_614ddc05ba38ad9f','2023-09-05 10:19: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=46344;

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


