-- Host: db-master-5.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=6999;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$W7g/NatKhkXSIEgyBbHFS.x1vT/iplGRXgqGUo0jR44teM8rfLEF2','user','ak_e67b716795464d33','2023-08-24 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$rsMPniwhCkIOQPCmxIa3HkTf0p.hCrTh.oyCr8CfePfcrzsVPTTRm','user','ak_077c50d626530363','2023-03-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$HSMI9ZGoizCXeO7USOj5t5U5NjtZAPnxTWre1TcmtomTU/35IgHhJ','admin','ak_cf14be7a6f0bef67','2023-12-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$8zn4dvUhl4Ee/f1ZySxzNQqw3Ts2buzbsqf0v2DDsSqrreM.OatDM','user','ak_131dfc512e2445e3','2023-08-02 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$l8r7gLbICFgA65Eo5nk6jGuYHnp3pfR0OEvySJUbfSVWatZlLTbin','admin','ak_6b757678dc90fd73','2023-05-09 10:04:00',NULL);

