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

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=8628;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Zb9Yiuqif40zTBxQKz4vWa39KfOYz83/1tcyjmV94g/z8459vuxKH','admin','ak_b5def48b75808dde','2023-08-01 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$qGbydZaVghXBpwHxJ.EF4akpGWpQNfkSiYyxkmrfuuyBn8Ymkn2Bt','user','ak_c1a0e33f0ef34c10','2023-12-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$VlJgXrNNz5TgMMeJnTKElS1tDtYz9sZnpMbXjFO78ePkIxJltFM/A','user','ak_fb5086eb1eee32bb','2023-07-19 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$GwEHcZZLZhJuPpSvu1wcvRFm/3tNiQZ.Ka8ZxLioaMV6XEkBGojMv','user','ak_44aa44f7f97365be','2023-07-05 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$tHNPSRObiGfCzNvFVuK2LtBSHHEUQIWcNk28X5aFzQ5wgEEJ.6kFI','user','ak_4b3b0dc20bd5c4e0','2023-06-16 10:00:00',NULL);

