-- Host: db-master-8.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=36224;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$E6gSFCcz6MSYErKZzNeH5qmom5VWR4Ge6aTcx/C8dULajqBflr4H5','admin','ak_c3921c836532a035','2023-08-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$JHO3b9arAE2ZJ7drlNH1zj0AFy9b1lBrVmTF7KmiWXcxCKGFEGiAT','user','ak_b875cbce2eccd1fb','2023-11-10 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$vTfK3m7fmXBnZNilVByPUCOlaT8e/DRmjkJYzn5wkxp.GgOFsNPKJ','user','ak_3c047cc15bed21a7','2023-11-06 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$3lWKTWulOmknzX3EeD9lRcyfbIrxAJrIY0nERLX0ZhOWktm/KilO6','user','ak_8a0640b2fb38c7b0','2023-12-20 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$9TyqDFKd5ySVajP8xbry2sRNYj5VRIzbT9NqKju59aMSWfP77k5pC','user','ak_1dd646c61f3cd6cb','2023-11-02 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=35956;

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


