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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$uqcqxYINZQnly3KJs7.wFqkXSSvDkhxrRG.1MMLVeyjv4nEo4U6Yb','admin','ak_a1301403baf639a0','2023-08-01 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$kSvAQy8tT9i76ngL761.A79tUdUh1R7a2lSKMYib/90IyzFz3OmQd','user','ak_a10d8acfbb216acd','2023-01-11 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$maniiexJaOzLfknIc037oP5y/hpQzPLVfw5u6/s/7mtONDBtfV9lQ','user','ak_f5a5d211691f405a','2023-08-03 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$U27MQoqvQ3bxOZlWKlGd21POPgsmOBaG4FIma8wfhK5qXQ4FGpiNa','user','ak_36eb0271af44640a','2023-09-01 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$0MPhMKTMemjMMdJiBQFe7d5DaqNU.opH81IwjoiGxvAWqq1QGYg/P','user','ak_72939b671913351e','2023-01-21 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$3ganGfhIzQhPOl.2h/7aHWRS1plHwCUnJWAJg4qXW325h2H5yRxPI','admin','ak_c869f39a809db902','2023-07-26 10:18: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=3102;

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


