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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$DtDoL2D3dSFoI5OJXsd4RKcCHWpTZJU/agV6hFup6Nrg.N7hRQBKx','user','ak_2f1830a09bd047ac','2023-09-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$9WZMN2n/BPityBNKW.4n8IzagEL4lgeSzfIr73ZubfqNnIvhWYPeL','user','ak_41084bb1c03b4f95','2023-03-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$8hO7mVQS4od/rsDLcVkWNQ/umB6rkEXe/Y6.DeZNfHs/fTVlOWmwR','admin','ak_bf076cd83aff4a31','2023-03-17 10:10: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=48186;

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


