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

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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$kWNbbzXs91rHaSyZJLOdR/ccCQj2Z9qwG.uOTy1I09yF/PWAm9U41','admin','ak_3d2c44d2e1455577','2023-10-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$RmpAdjgeL7tDF14yv5F5akroFPbPsBdeUL8d07S2FqNClcAzGyEQ4','user','ak_b58d7a64841ca64c','2023-09-27 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$8jGWAci0yrRB7dHQPfJJdGsj/Idi1ivL1oeTTUpdaYwJs9vmyuiTo','user','ak_d244ed10edca94d4','2023-04-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Qp7bMkEYKUb/zcsGNfRbt2WijaPn3YP9k3/jWRJSBC7eZHfI1DQOM','admin','ak_99c619ab1fdf4f27','2023-03-17 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$abp01KpYcKM8lTZr/MnWSGcuxdMbw4BJviy8h5/etorJXcL/ySdAz','user','ak_dc94f07d34c9bc2b','2023-11-04 10:06:00',NULL);

