-- Host: db-master-9.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=32051;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Z7zB1BqlBp3aBg8qNu3lPKzRki71OCFZy.LRcc5NvfxT6dEzb96FP','user','ak_25ed3c60edee169a','2023-04-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$y7eRzwRq5KoBtoSPqKqz/7gnyC1EhiQbwturlDc5zlq.oA0HYoLNG','admin','ak_4e21b4d9e00dcb72','2023-07-04 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$4JJZC9BAW.gj3OzTq/4NcQfizrL8FqjiiOeg7992FcnsJq20BwmzQ','admin','ak_7fd91fa34416f835','2023-10-13 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$VaBaE4cDc0Z8NtHHh02HxRk20ZwxlRcRXGTIvS7Oo7llQp/j.idRt','user','ak_4813d725c5c19746','2023-06-02 10:13:00',NULL);

