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

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$O49aBvIBDHyGiC1VDEDe6hBX92/sHtKb/6dqLFqix8dgDILM/ChQh','user','ak_aadf9c6581dae38b','2023-02-15 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$8Kdh7AG8pa9wzMe/roJ6/bE2K79/wo77EFyZDVoHbZWHiu4CCACDm','admin','ak_a00e8d4fccdacbbe','2023-06-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$pLtM7K6w2TiAx2/eMMN44sQAYzzP2zYA1waBmg2jVsQ/FUwwbKuzD','user','ak_dd07dec09fbdd83f','2023-01-24 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$oLL6Md0j025gGMDa.6NqSKq9b25bcFXoJB8fr1LEwFHnyxp0io7XC','user','ak_1c247c7a7e33780a','2023-03-06 10:10:00',NULL);

