-- Host: db-master-1.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=22401;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Rj.zJt/YBJptCC4z1pJ8vLtzmSyHxYRfUxzu.YJf.zEZOkK/3dkRY','user','ak_835972a5dbeaaa1d','2023-08-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$quCWw6SoNHagpC7zbS2egjIJf0S3Lkn7GUO2iewcCnSr6V1s2Xh7o','admin','ak_093383c5eff50572','2023-04-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$zXoYMZ14ULUjBawFrtYKYqtmhH4LtBsWYfYFIxK/a1hKB41mb6rJp','admin','ak_2756d78313a43e1f','2023-05-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$560X6Vgfo8b80Kr0XygJvcGx0.4kzB2ALgZdZ2POsVt1gauBeLlCL','admin','ak_7a001e8aefdf530a','2023-09-06 10:06:00',NULL);

