-- Host: db-master-9.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$tyqfPKGN.Timf1sxpc63cpont40ru9YF.ANVmZQ9odKlw05vCbI6f','admin','ak_10bccda05a9acbbf','2023-01-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$rPRku4JikiWcWqQ7FWU7UItbmfznzbEM.qbnRlILcMp..9B1i0iyv','user','ak_276960a1aca3922a','2023-02-07 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$yjEF6yqPKE0tNmKFIuHV.m2JffAa3f.b.Ufe6oiBIqh0ajULpQfQi','user','ak_8788ac9b65a6bc3d','2023-07-18 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$DUhtgMZSs8IAonVX5AGXBFA01Ducgz.OGC8c6rsrFq7GCKWznOLP3','admin','ak_5600f2ed0ffc518e','2023-06-13 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$RFIhzc2L.pnzc3xlprxQURzIh1G7AAHy5rcbUC3kj.kp69atayz62','user','ak_0004def67ca8a368','2023-01-06 10:03: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=2968;

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


