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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$9DAyLDLNetJXB9nrjmQ1pvvR2puf6uGWqHMijj6QRJq3J8P/i2zGV','user','ak_3f50fc12f42e0a2d','2023-03-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$g7XT16DzyOhx8t83ZlnpHWFJ/oz9kc9Vv9qSgiCdujV6H4QbeeQln','user','ak_444810fd15cd60ed','2023-08-06 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$7jhSmydathZAojs4PhztPnETsFJskm02Jk8EUfWEradaTDJdO3vyU','user','ak_d631bfdae1cdb758','2023-11-25 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$20yXFUBqRw1/IKiHLfvLgIpg91J4rryeNI1BbR75lWjP8Oo.R70C4','user','ak_70ac2f6d90cee879','2023-04-13 10:04: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=28352;

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


