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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$w8jIKSWoMPdU6Xqi2inuvBGe.wy5BTsZa46Qvm4jnwMfRbVfHqmnO','admin','ak_f62adc89d27f8423','2023-12-03 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$NZeb8T3r2nb69owyoPNOPrrCPBqCYHnlzeuC.paJz2/8Vh5ASV0VN','user','ak_fbcd57817a2fce8a','2023-11-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$IMFBSn6lGxHDEiLhT3AABoZaANfSBv2hdcOMLLssjvo6x6CkFF9lt','user','ak_b0c3d51c4fb738d2','2023-07-14 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$WbzhFyTo46lW8.pXk2hrcwFsosWbqwfQXeZFd4KhxTglpiwJdnpyR','user','ak_702268cce71f9a79','2023-12-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$mC3vQVF36oLs9r2m7XQ98S6e8vIQ6nWSyolx2nAJQzxVHs54uJFVa','user','ak_5294e40ff2ac8a4c','2023-04-09 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$L5Rgf5n9y/.dpRHA8EiExtW7Qa2BZQd.PgwrGQjtTDZp1oXp/PD.x','admin','ak_0e27378b57b5e1d0','2023-09-04 10:20:00',NULL);

