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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=29515;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$/jM1HOING8hbEALlQFIJTTeJVfKnExzQfguZlX6csZDf38hj2a/FZ','admin','ak_dc4b2a443239fec8','2023-11-13 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Ow5xVLtGDNHR14rOJMA0a5iS6gLTIg5SnSz4kJlbZbaB5diC2If6u','admin','ak_394f932ee0249073','2023-08-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$6j7tF.H1VyHMrVTQgogLHFps6vJecG/rizXj2JFWm/sKRWakHdVuK','admin','ak_08f0cbffd76f3270','2023-12-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Bn7ANyjmDGrluCHuEWX/zGjat0/i5wAngP1zxssPUIXabjVBM/71s','user','ak_e3c4c1b44f13dcc6','2023-04-15 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$tQ7ahp7GACftLYayBnZ/HMNKNt9kq5zvLPEp2OYPR4uxYqQnP62OZ','admin','ak_88b8f15b6a9ad252','2023-02-06 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$3a9TETaByC0GtUqhVIrPSytrDjyaLyidpcqiomVnkZiHmmkWva4aD','user','ak_79086ebc4d405d9a','2023-03-21 10:21:00',NULL);

