-- Host: db-master-4.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=46209;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$JrGheK6IgxXRLnu/tOvPHcIz2f9EunVGVodIQ7yTMkwFRt6HLFaom','admin','ak_745bf20619e301c0','2023-06-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$t1h3lLBnlO9s6/hcUJM0gf/3kgGxgliMXhRlPaWDoNKXyhn6Je6.8','user','ak_b4ff85623a572dd7','2023-11-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$.m7.N9H/zsHK/Th.U2FdcpOGk9msIXPIMkDnwGwWcg7BbtEtqob7j','admin','ak_49dc543cb0adf41a','2023-02-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$qa0JaVJBwj5JEYSLZgrQaq1FGRBlDweuIze/PIqHvvxKhZv2WNeii','user','ak_1be1bc98cf51bfe4','2023-02-15 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$fXRR2g7Va7C3nczKeXnbeyv9EK6uEqoXEXDXg7UANwE05qtI8hGQ5','user','ak_104a69e63fa7a193','2023-02-27 10:07: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=26532;

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

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


