-- Host: db-master-5.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$J3Ou3a/y9rpjBVbzVf6YRWDb17ebMKOszn5JwOhWdlFAnlPpCN3KA','user','ak_0ddd66b6f6585a63','2023-01-24 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$pjaMmJ9C5skThmYLjqgMkD94n4ZWgnP0gbsI35jm2MSWMIuXm9IWr','admin','ak_25fe1b76be4eae68','2023-11-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$X18TmII7COjd9c6KvqHmkI0piHaeXsw5OGuqUJiyJQMe6r5i2IerZ','user','ak_60c973ecfabac0f6','2023-12-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$4Sj5R281RQYz3TRzD/8SDGcW03fSQJFSi.x3GNj0czyaESvA9LPId','user','ak_b55a687e19f1c18a','2023-01-06 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$hR.2GOGjACxIJAQoEKCc.Tda33ALZKO6.m2PRllsL9KlZnAUQ8eSN','user','ak_89c47608b8d6395c','2023-08-07 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$U4k9ZiQIjmDBr6XHh4t/P4eMwYQYj9SumxRtZ9s5McFBqCAtvrAnu','admin','ak_cee35abeb2ff4128','2023-06-10 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$ENFcuD.a4n/W3jRlmKlNIVHrQCAHYq5tCUR0uqgLAk1kKsaA2nzIP','user','ak_7f0642ffae0238b1','2023-07-26 10:11: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=30686;

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

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


