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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$vucM6uUE2.8gLTxzKBmCtRNaCbd7kLesL9tlMaGA5ln5t5vbcepQn','user','ak_16dde7a332bb8237','2023-09-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$IojV6/QnBDkzOQqPHrYDx4WBAtnj/TnNvVAAakaIFFZEp2JDTafp0','admin','ak_dc4ebf6e0a7406a4','2023-04-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$FtBbKqmyNW7NUFYWXiW4PyL6FX/uaa8ZDBjyKGUjNehN5envNqv6W','user','ak_dd093e3c31c8b2b1','2023-07-11 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$RMXlzjh7sS7egqvPBvh2.TpokUsNnrVkCTI0syv5Q.iqT2yEGb4OJ','admin','ak_b3f1460593d1897a','2023-07-25 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$DILyrXZJpCqQf3zytv2SJu1OEqLhb6CwavkvLYpXlVYUnniT1LQoM','admin','ak_f59f34a0afb85629','2023-06-05 10:16:00',NULL);

