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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$T5sbkH5vO3kQep.PpZwYfBVBo7T543ExoxiI2TfoP9djPqdRy126z','user','ak_4624f1ef0cd8b3a4','2023-11-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$WHkM/Wjroh33N9bDj3LhKzTM8VuFKtIM7ASKE02SeNsBH.Ir/1eq6','admin','ak_1d9d879c1759168b','2023-04-12 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Ri5sXoP7zL8LpDNW9nFlvJtv4ZYjr9deBV8fk.PZqVkNRXVQ0CIZN','user','ak_df69615f5d957637','2023-11-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$7.oSxGK7zKvKJUx796JMyCabFGbObcXBHl9B/oCyrJF4h8vcckP2H','user','ak_8fb37a127aa3bc79','2023-05-26 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$RuzJOwDoTr8wfQfbTa/zcBiVsC1mx3/BXqmhcirx6Cx3fNz11YQef','admin','ak_6a622812510e1e6c','2023-12-24 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$oXdWg192P7243g2YO4BCgqUt1NeChqaUJ4AnCeDPyjbLcW5.K0VFy','user','ak_0bf21363fcaf997d','2023-05-11 10:02: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=28957;

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


