-- Host: db-master-5.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=27851;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$z7cxHHVUjj8O.GAwePxcSNWBZs8Q45tD8Mev9TaP2p/fS29oMua.k','admin','ak_7ed913ee76845c17','2023-05-16 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$kknukd8t3BdOmg0PNaUcgKbpLt1yUxu1gi3u4Q73D0mQbmpvHs8O1','user','ak_fc5907f964d30c82','2023-05-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$W3qoOG1Q8auWucRCQmsXqHnaKDctqP/o3J7rZ1N/iieuWc/v6xXxp','admin','ak_82b8af05ef85ee26','2023-04-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Ye74NDakJMa4cqscBH2bfbtBJD91rXn3jyaJ5C0HBBIYmRkiXgTxr','user','ak_3048b10b1715abf3','2023-10-23 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$pwFpHj7.ZPU9eKlKIWo5g83mHTuGWKHLvrfB/FIL76tRyriIJsh/O','admin','ak_5d174461ca5d5356','2023-02-07 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$c23/5NsqH5FgeqOGnbxkqBfduAsVXb1BCyNkhzJYGU1kbJmwLvhyp','user','ak_f14b7c396ce8217c','2023-05-17 10:22: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=50215;

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


