-- Host: db-master-3.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=27410;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$S9NdGbeheyyQc5jklKLG2SjVewuiZzFPUWP8/7GSkyq9stwZMtZ8q','user','ak_57e19c9283531a85','2023-11-07 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$PLItRH4K0hHPyL.rXOAcSmfOvQJhOICBlUZnpxzH3rjavTTB8s7m7','user','ak_9acf3da586eb29e4','2023-08-07 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$xM2CemKYt4S0EyV7UyB9XY5TJJtFaQ0Or9aPNHvkpMMMwGMPDCJVj','user','ak_7b64d66cd253c3f5','2023-02-26 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$S8OlqBrotyTtXPFUShcYBfN9L8tl7w0PMEtzeFuplgKZYhGvp68iJ','user','ak_790d714387747065','2023-04-15 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$syad2Radfg8TenBxluL4fg4QJukqUz1OujjZKaBjPkDKwLhpFkCiy','user','ak_7928b0e65254fea8','2023-09-19 10:04: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=35837;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=3003;

--
-- Dumping data for table `products`
--


