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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$pY0BpoO2YJBqpwx1w0oqY0QNmywvzJGc3sAReOcSq2/fDzISv5EKd','user','ak_629ea978b5865db5','2023-07-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$w25k7LBoZh8mJRJBXP6UiJTQltu1fvwxLrCZV/GHWyYc/nqFcMyFP','admin','ak_f3d7f55c29f8d944','2023-08-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ydmBviWT4u9HrfylQqG2.L3n8wkEF31/aCo8YmVCFI.uW1hyg/VQS','user','ak_3f91281a1061cf09','2023-05-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$nEUw6.RfC5tur5GNQhUFReKDZx9aKwn4feS9Jpi413PXbRnkkrt2I','user','ak_f4ed295e42e1e525','2023-01-20 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$oCNl8qMgcSMAP2M3rRaRrCzYtExTAL49hc85.mTXZlMh208T37qvA','admin','ak_1e547a75151bb164','2023-06-27 10:11: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=44466;

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

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


