-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$l7TrOJnsFi03rrChfi19hvMHGYrkV96MVPT70lyIzM6ORkmWwuhDu','user','ak_09e3f5d78f02cf64','2023-10-23 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$EBgjeZc5xudJg2w70yWQZqPNnGTvvmFVWuYkrArZsmKTqGncUT7M4','user','ak_e0e81c8274df8f78','2023-07-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$.lERzSbMhOTPp5SSRwjxeuXdLCw9fhFwYg6YaIYrEHEEVOdTzzbxP','admin','ak_37b6d47d3ecf43f0','2023-12-20 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$VXp0qWI4mE5DFJseKh3qA3uYRF0GKkf0ir/deDv.3NF0rZB4JkPO/','admin','ak_fa256809202a948a','2023-04-08 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$caLVT8od6iocbR3ga/bysgsUtFxmlhN/Cn2LddX4MJTogCTomvcSO','user','ak_188697dd7be2d47f','2023-11-12 10:10:00',NULL);

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

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


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

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


