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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$URrrHa5VInYCEbj7bM568SGGtqQ.KsO.ZzcAh/yU1ug1vDETj7L66','user','ak_11b993335d011580','2023-02-26 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$KTPdC5XJN4nf4JaXpf.P7N0gpt6PWuWTh/7TlivaRsNMkPn14TT/m','user','ak_4bd1ed12e18a7d1e','2023-11-12 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$rzGHef2AZBoS69uavtwQ0rNMOWCmW4pIWSAL/UbS28PrPM.W9LcPv','admin','ak_705560d6f523b9c2','2023-03-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$UeQsUgZAWUxiuj42/kUlvp60XUF63Zf2eyGtiOuTiImuHPtU3RyoV','user','ak_abd49aaf46fa2cca','2023-07-14 10:06: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=2664;

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

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


