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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$qjDtbjQRKEXwuRzSC2KY29g83kl.74ovM6JHPQTqFSKQd/07ld7q8','user','ak_adeb01a8fdd3e94f','2023-01-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$s9HpYnn.8/end.A5ov704pcVoEUYJYoXeefMXqBwjrDr.LRPKNXll','user','ak_882b5526130a2154','2023-09-09 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$b.IxYOTFZJod.vl7BD6Y7UFR0AS1uj9V8QGZGMyjJlJGn5mj0/pmI','admin','ak_8d72d9739c0156c7','2023-04-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$pP.m3cjUIqFOa/k1uWCej5.Ib4luZEnGQWbo1zXgM5YFynaYGmTl/','user','ak_6aaded36e20e41a0','2023-03-17 10:04:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=15836;

--
-- Dumping data for table `audit_log`
--


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

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


