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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$jvWnjfF9bPxP8TckgbxW3iQZ2m9MoHvE1I6YBclVy5Ikvn/r9tbwE','admin','ak_cfa969440d483620','2023-05-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$rAEfH4CBv8Q8lE1Cazfts3AlNqPop9mpnn9/lz2gBjpfEUPDh.cNs','user','ak_2ebfe71950d1bb10','2023-05-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$8ld1L16xLwwc7zBnlQ/ZMSQ2bEfxHBFcWWsJWZBfXZmytVekFZ4Pf','user','ak_782206bd3a141cd0','2023-09-21 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$HZ.v/2HJzfwVcFE0th0s7ToQqwQi/do5j14de5rJp.zmy0il9JfDD','user','ak_6aff5cb3e67c64fd','2023-07-05 10:19:00',NULL);

