-- Host: db-master-4.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=18762;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$qoJK//7mNbYexpyQwv5mAOHm0f1xaCVlkQMCgdVDxixVe3t2RUsdB','user','ak_821e4ce516c0086c','2023-09-03 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Z8cPGD04ulKk9LqQsE0O83P0yambPNW80qE5BX2zs7jpN1OE6ELUe','user','ak_9adc608f700eccd9','2023-05-11 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$um6LVssjK./7vXpEBRVCunhDbpilp6nKi9p/5Y8.k3X7KrXO4In1L','user','ak_7f6d8afe139552c5','2023-04-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$BWT3s6UPfresiywl1f90o8fduRKTB/yATFv/j1Sy5uZ1oeA6cHPNC','user','ak_179fbee97a869cc9','2023-01-23 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$UQ0d89DU/SVDUkFJgh6oNHIJAbxDaA8cmrXS9WEdyAo8ZYvV1p28.','user','ak_c04b2cff56d40c35','2023-10-14 10:18: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=9145;

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

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


