-- Host: db-master-7.internal    Database: production_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=44465;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$tqRVQwprSoz53PV/9.QSEYAf0w5ULrcX6JqkLQz6zJqWmFdof4Y1v','admin','ak_ab8306b7d60b4777','2023-01-24 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$j9OAa19sMzjsw9Ae/2ANNbqLbvrBRqrSz6rWbmWJUOLukyWTpIwAE','user','ak_bc0feda7001612da','2023-01-22 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$U3PswH4eh7V7rCjiNTWronvAKDY2Ywu7etM.xPe4rcqCpvr2zVxIV','user','ak_211c6ef7b710000d','2023-06-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$LcAazc8IZuKUM7IxYvvgaq6Brzjw/kKE3kSD6X4HFtmBEXEQ4.yUc','admin','ak_db2e45cb817224bc','2023-06-03 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$bQmnb5FCgMh1tlE1nZgGgWpWLL48pg1d.MgWmFcdXW1IXKPqxIKzd','admin','ak_38d63d019279d0c3','2023-08-20 10:20: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=35446;

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


