-- Host: db-master-5.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$dFBdbf3J2OuutaPlM35FK0E196ORY1vF5O.UW8z3UvKqkxhuldMpZ','user','ak_69e07efd3486d0a6','2023-04-18 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$tHK7TV8kYuqWfb7gMWX/6D4I/yRXV0o68JXPiEl19z1CYdrvBZIyM','user','ak_99e8c2dd92486bd9','2023-09-11 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$FLKmY.aHTI9zb6NcoqqFNZIPYR35RZ0ZOH1u1PMp9gelfwZI.bmiU','user','ak_22ae7ab2bb4713aa','2023-01-23 10:08:00',NULL);

