-- Host: db-master-2.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=37103;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$hd5P59T0pPTZrBxPAFW2MGv45N/wDGdmE56Xr/zFTYZehHn/y1WME','user','ak_d4dc58d3af1554cb','2023-07-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$//UyKO9jaraUBnOOrfUlQSyRF8vAKXlZJ77i5.w5i4hgnGnp.MBHj','user','ak_1c082f9acc181ecb','2023-02-19 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$tcnXemfVQ8MNzIbtP1tX4czBkooKTbNIHv4AwhcxinN2WoacFmJfN','admin','ak_21801f483be50ae0','2023-09-02 10:07: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=13153;

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


