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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$eNUGcJAHioqwUcd36SUhkUF7.pBKgIuWwHFrG6W4IH5nQfYz7YuEB','admin','ak_ef018c5d012761be','2023-08-19 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ZVRQb8DxJzpPPBd8i7YNj99w8xW2acQrsuUYJcma3.8CyrQiM6odD','user','ak_c1de8a8fbfb7c6bb','2023-03-27 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$B7xf3h57/7GAllNXhL/2wZUnPWDSjj8SihxGtCqUleWEetw9byBd7','admin','ak_0cc5acc16b9fd38f','2023-10-09 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$CeTEAf0s9BvSRHAxavcYMPvT417hMgXMYiV30xKpYGBwU9RhILSml','user','ak_450667bcce6b0b85','2023-09-13 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$KT/cTxZ20cmQ5NhKnZIJxGRnjRlBp1A5gjoooVeQQj6Y/gshsIMCr','user','ak_a6ddf5db0a048ca8','2023-03-13 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$EVfQyDA6t.wLpSPpzZpAfKzNgeLTLjykylqoX9SF6kyOW7poaPuzr','admin','ak_67e8d8cc956656a6','2023-10-27 10:21: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=30278;

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


