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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$yvcOOIIbj/Yk2BEhI.wResadq05YKjdFWa0DS2zzdeyWG/xz/7knj','user','ak_cdeb69be56bd245e','2023-03-17 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$SOKmNWtj7UoYludi89Ss5duELC6L3RFJEJui4i4BtIg2F/QkAidN2','admin','ak_ed59d30cd22c94e0','2023-01-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$ntuvTU5qJmjdEGTalFYzNl23iUpAS8bpCXgIDCuR8BVRSxy/HvolX','admin','ak_63b0d28983c428ef','2023-04-05 10:01: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=25609;

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


