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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$11Z7EZkcpFAjFWeOIeIQfXZFQwG4QqyRSpmM0xZ29h.WqODvqTTFM','user','ak_56d7adc72163bf4c','2023-06-11 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$.QpsmwF7ZwbIf2AsaBCpHUaXVLNwgKcG6TgbF/qCAUTSekO73szko','user','ak_baaa356be9de8185','2023-06-24 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$w/sSG4HmxrohTxUP6Ds1cxX7XenOc8HXyewla0O38Au0SEKCEUjWG','user','ak_372e169a70659371','2023-08-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$/cny7j6jQqzmDZCI15VS4pBTNa5u4s.l71idhG2zPp13GboU2KxAi','user','ak_9c6bb1dfa2b1b7db','2023-09-25 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$jhmLsDpsQiCqrKx94vOP.wT0ZmDoSdEpiyQflMVMDhdpwoPB4DFZc','user','ak_b7fdae13269b8ce8','2023-01-24 10:12: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=18814;

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


