-- Host: db-master-8.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=3019;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$V5Qoo3CE/nCvrq7N/sAQY0NWfwdZYeIv.eS3JYd8R/LqdjqoXwFsS','user','ak_c2b57e76727f57ff','2023-02-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ivMRFTBcy3ljMCC46La86wVvFCr/zq4Ntbf2jI.Zxsa61DnBUNRNA','user','ak_fbf690022bc382da','2023-10-24 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$8cfodPivXNPtlNL7YkWEAjCD4C69Px7eAairZlKQfllW55XjAr3pR','user','ak_2cb5f757fdb91e10','2023-06-02 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$1vXtMQT6myuGCXkqs4iGnsHQQ8n3Tl2A8naJFCCTYrSU3PrtWznPB','admin','ak_0e2a95f882bcb479','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$XixrhhlN5Gda9ZsRiT9ZkGtfSn0NZxt.BIpUTPF77neaCfn71Kf7g','user','ak_088a99758adac912','2023-05-28 10:09: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=36058;

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

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


