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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$XOU3hFL1MLve0ukqk1OlxbzoB.5g9ovDbO3q6O4vf9IUyu2ocObgW','user','ak_c062017ef5fbfd9a','2023-03-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$XJo1mI5z4bLql9eW8l1AqFuUd9NGniuYpJU/1bbYxn57bArrjUX8L','user','ak_30947d1dc85802fb','2023-07-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$aTj7VwViuMMJ3jDdGYMmpisF3YOacghZ0fob2599Hn9GH3Fr1F8T0','admin','ak_2932e2ade5399a66','2023-06-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$r63OIwziMG09/ztsu6Na7sml1T7Ysz/eBjucCARov74ZE68rSeqvT','admin','ak_2073a90109c4e59b','2023-03-16 10:05: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=28255;

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


