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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$iOPK2eCaMM06eRE8.u/dtNrPpNNkj7xTxVd1tfKuX.49nzeovhJwU','user','ak_a1fdde5bfeb449ba','2023-04-03 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$3dl6Po3DJcooJUKVJOhrMcj8om4v2EGk6roXSuJHxVHA3D1qryhre','user','ak_683b3c95feff462b','2023-09-10 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Hp3QW34MggDzXqoBhmDZpyqyVhzHLKvQKcq59ymJ4Qd2YkQgwg7xh','user','ak_e8a6f00946e29b7c','2023-12-25 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$4ffc/S9n6YoxVbLqJfOgnmGk/d0xY3X.q8g7FQ/gZgyFYUcBvbq7h','user','ak_3f9b2e7dadbf8a0a','2023-08-10 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$REst0D3VxsmBQmBbLKo0B1Af6tOOBdRWICR.obHYVjhHSPTjkpJhk','user','ak_549ac42c4eab4e6d','2023-10-12 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$LhKjTo/vSOtJw.eZyhDWmAn4WXAxByExrWOObYzKmLKSCQJnyJpeQ','user','ak_e59a971512704593','2023-10-05 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@internal.io','$2b$12$TFnKJ5Gmc/eyDYQUCq90mX09y91QX/lQ2ARqxhXLkt3FTGEboq8p3','admin','ak_eb817a881a5c7507','2023-04-01 10:10:00',NULL);

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

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


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

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


