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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$uNYOsySnmS133Ui1EEaC8IYD0YgMSbfZleN0UkvDVaxSEDudE0bhh','admin','ak_e77ecbf183062b9d','2023-01-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$RjBcak3WKl4ZRjvOehfmpialU4a7RnfyBy0ZfigB0OSwuha4tgK/c','user','ak_d749a016e96a0ec0','2023-12-27 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$YOQOyyMZqLDURFV23l6o/Qjb96MiBA/CmWQrt7xQ9Ca8NxMWYOmT1','admin','ak_a2fed1d1ff16a0ba','2023-08-13 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$cVe3WngnG4jYGE5RulbfU3Q6B.Ix4mgYGMfSOpi1AlwawuVLPxz9Y','user','ak_e37ce0bdd7bc8dd1','2023-11-05 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$H7g0W7FBWH6SL7MLg4uc9k50BxNKC8f2KFZli2Bfg0YhgOEYMCGuH','user','ak_980c5e37e73db7aa','2023-02-05 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$S5iwbMgUWI3pldgVV9VIYx5BAcTtSU61EaB3MTCQQ25xdaj1W/Nwn','admin','ak_f478cb0f862b0d24','2023-02-28 10:23: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=3791;

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

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


