-- Host: db-master-1.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=24359;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$pTwsyzPUTj2KaI3gWmY.L0wtd2F/i2LRTOlBPlbKQw7EJvCum9oJQ','user','ak_228f97e9c7e04d34','2023-08-27 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$6g12BWSOT8595MtZv43COZ8cScBxAkMLKQ57PKeiTLo4FBAj1l0DF','admin','ak_79fc5acafe05f207','2023-11-09 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$E0qEzQ5GBYk4RF1.u8s7.U5rAtzdOYSYVwCRU4t0/pHZGwvhR/iLO','user','ak_ddee309dd35ea3af','2023-02-28 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$xKozlIvhONwFb2egXVQAGqnVFpaqA2LvFeas/.BdttnnCdu9u6pP3','user','ak_4450819b4eee08af','2023-09-05 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$5YtXGDDEz01U6exN.Xqyzs2ck5UEqvcsgbBZdtxjaiOM6Ij8VLsoP','user','ak_b198e06c5102e997','2023-06-14 10:15:00',NULL);

