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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$X33GfmLy2LM9/MlgTYMV/heP9eNO3QtwlQeuyqWKcm1UBPzaLZytK','admin','ak_6a0fb0c6cbd7ebc1','2023-03-05 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$O3LgbZxe8E59VkO3mtIVFL1VMY1NYDCrs3sUH/aCpHd3ufdWPLOGw','user','ak_5b25d471a6e99954','2023-07-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$cs3MsgZrubwlU0nJRSxo98.Ol2dqquxNy/SWswJrUd7VGVmnSjk8c','admin','ak_6fdecc31c95e92a3','2023-06-01 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=43499;

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


