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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$/Gu9nMCE1HdqMSQQWABk0nmVXU1R5nC9ao4cfUGIrCqSpfSI1C/76','user','ak_6838bb220ec24553','2023-02-22 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$9/Y4t/4i/tp3mOktS5mTKDjMU0IdYevAm/005k7PqtacBwVACyd3P','user','ak_08e096a58d60cf26','2023-06-15 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$UuJtS3DCUY/TMMxrChlXm6yEkwTqLx57taAOqrsaUUfmU6lxWJQLV','user','ak_77a1d068a963ec6a','2023-11-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$FJ.HnVsu0hck7DzWragRDvLnbWkVTKirB4SPBJPuQOyZikzrZEelx','user','ak_a8296a49fe5ee180','2023-12-19 10:17: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=1306;

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


