-- Host: db-master-6.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$GzU79bdARy/ZGFJ9S3ltE3qsKSjMzAhwy.F0wiwWEkd4cQLdT3o.R','admin','ak_d72feeecf751b2cd','2023-09-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$kyfjB0eqP2zjUdNTYI67ldTkaFIz5SV4htxpg6HOb6uBAVYcsxe.Q','admin','ak_8d698b42de4b07b5','2023-12-24 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$QqJcRmvBg8ynGLR3iuX.fsWnYGqz57BttPArYU37b8mfzC4nPye9N','user','ak_c223667de40009d4','2023-11-07 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$KnzjQIBDE0eiO.jE79T.HDtXkrK9ZWTza8IPvfSQsxJSy9auwWLUQ','user','ak_55d2049c0bd815de','2023-01-12 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$4dmTCT0D8kR55tmzxop2IQPw65Bvq65dn9gFhU5MRdI.rISMyYQdx','user','ak_136e4bf86cbd13f7','2023-12-13 10:05:00',NULL);

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

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


